3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
4 # RUN: ld.lld --gc-sections --print-gc-sections %t.o -o /dev/null | FileCheck %s --implicit-check-not=removing
6 # CHECK: removing unused section {{.*}}.o:(.foo2)
7 # CHECK: removing unused section {{.*}}.o:(bar2)
8 # CHECK: removing unused section {{.*}}.o:(.init_array.bar2)
9 # CHECK: removing unused section {{.*}}.o:(.zed2)
21 .section bar1,"ao",@progbits,.foo1
25 .section bar2,"ao",@progbits,.foo2
29 ## An SHT_INIT_ARRAY with the SHF_LINK_ORDER flag can be GCed.
30 .section .init_array.bar2,"awo",@init_array,.foo2