diff options
Diffstat (limited to 'test/ELF/gc-sections-undefined.s')
-rw-r--r-- | test/ELF/gc-sections-undefined.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ELF/gc-sections-undefined.s b/test/ELF/gc-sections-undefined.s new file mode 100644 index 000000000000..e1ce9c739738 --- /dev/null +++ b/test/ELF/gc-sections-undefined.s @@ -0,0 +1,10 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t +# RUN: ld.lld %t -o %t1 --gc-sections --undefined=foo +# RUN: llvm-readobj -t %t1 | FileCheck %s + +# CHECK: foo + +.section .foo,"ax" +.global foo +foo: |