diff options
Diffstat (limited to 'test/ELF/file-sym.s')
-rw-r--r-- | test/ELF/file-sym.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ELF/file-sym.s b/test/ELF/file-sym.s new file mode 100644 index 000000000000..eddb461490c6 --- /dev/null +++ b/test/ELF/file-sym.s @@ -0,0 +1,12 @@ +# Check that we do not keep STT_FILE symbols in the symbol table + +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o +# RUN: ld.lld %t.o -shared -o %t.so +# RUN: llvm-readobj -symbols %t.so | FileCheck %s + +# REQUIRES: x86 + +# CHECK-NOT: xxx + +.file "xxx" +.file "" |