diff options
Diffstat (limited to 'test/ELF/version-script-extern-exact.s')
| -rw-r--r-- | test/ELF/version-script-extern-exact.s | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/ELF/version-script-extern-exact.s b/test/ELF/version-script-extern-exact.s new file mode 100644 index 000000000000..1ac2f6395ab6 --- /dev/null +++ b/test/ELF/version-script-extern-exact.s @@ -0,0 +1,22 @@ +# REQUIRES: x86 + +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +# RUN: echo "FOO { global: extern \"C++\" { \"aaa*\"; }; };" > %t.script +# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so +# RUN: llvm-readobj -V -dyn-symbols %t.so | FileCheck %s + +# CHECK: Symbol { +# CHECK: Name: _Z3aaaPf@ +# CHECK: Symbol { +# CHECK: Name: _Z3aaaPi@ + +.text +.globl _Z3aaaPi +.type _Z3aaaPi,@function +_Z3aaaPi: +retq + +.globl _Z3aaaPf +.type _Z3aaaPf,@function +_Z3aaaPf: +retq |
