# REQUIRES: x86

# RUN: echo "FBSD_1.2 {};" > %t.ver
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld -shared %t.o -o %t.so --version-script=%t.ver
# RUN: llvm-nm --dynamic %t.so | FileCheck %s

        .weak	openat
openat:
openat@@FBSD_1.2 = openat

# CHECK: 0000000000001000 W openat
# CHECK-NEXT: 0000000000001000 W openat

# REQUIRES: x86

# RUN: echo "FBSD_1.1 {}; FBSD_1.2 {};" > %t.ver
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld -shared %t.o -o %t.so --version-script=%t.ver
# RUN: llvm-readobj --dyn-symbols --elf-output-style=GNU %t.so | FileCheck %s

        .weak	openat
openat:
openat@FBSD_1.1 = openat
openat@@FBSD_1.2 = openat

# CHECK-DAG: openat@FBSD_1.1
# CHECK-DAG: openat@@FBSD_1.2

Make the test more precise.
Make the test more precise.

The real issue was the missing explicit versions.

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@308391 91177308-0d34-0410-b5e6-96231b3b80d8
