2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "SECTIONS { /DISCARD/ : { *(.foo) } }" > %t.script
4 # RUN: ld.lld -o %t1 --script %t.script %t
5 # RUN: llvm-objdump --section-headers %t1 | FileCheck %s
12 ## Sections dependency tree for testcase is:
25 .section .bar,"ao",@progbits,.foo
28 .section .zed,"ao",@progbits,.foo
31 .section .moo,"ao",@progbits,.zed