diff options
Diffstat (limited to 'test/ELF/gc-collect-undefined.s')
| -rw-r--r-- | test/ELF/gc-collect-undefined.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/ELF/gc-collect-undefined.s b/test/ELF/gc-collect-undefined.s new file mode 100644 index 000000000000..7ade554aef13 --- /dev/null +++ b/test/ELF/gc-collect-undefined.s @@ -0,0 +1,19 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t +# RUN: ld.lld %t -o %tout --gc-sections -shared +# RUN: llvm-nm -D %tout | FileCheck %s + +# CHECK-NOT: qux +# CHECK: bar +# CHECK-NOT: qux + + .global foo,bar,qux + .local baz + + .section .data.foo,"aw",%progbits +foo: + .dc.a bar + + .section .bata.baz,"aw",%progbits +baz: + .dc.a qux |
