diff options
-rw-r--r-- | lld/test/ELF/version-script-twice.s | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lld/test/ELF/version-script-twice.s b/lld/test/ELF/version-script-twice.s index 87687cb2f19..3aeedd5b5dd 100644 --- a/lld/test/ELF/version-script-twice.s +++ b/lld/test/ELF/version-script-twice.s @@ -1,13 +1,14 @@ # REQUIRES: x86 -# RUN: echo "FBSD_1.2 {};" > %t.ver +# 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-nm --dynamic %t.so | FileCheck %s +# 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: 0000000000001000 W openat -# CHECK-NEXT: 0000000000001000 W openat +# CHECK-DAG: openat@FBSD_1.1 +# CHECK-DAG: openat@@FBSD_1.2 |