20 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3# RUN: ld.lld %t -o %tout --gc-sections -shared4# RUN: llvm-nm -D %tout | FileCheck %s5 6# CHECK-NOT: qux7# CHECK: bar8# CHECK-NOT: qux9 10 .global foo,bar,qux11 .local baz12 13 .section .data.foo,"aw",%progbits14foo:15 .dc.a bar16 17 .section .bata.baz,"aw",%progbits18baz:19 .dc.a qux20