Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / linkerscript / sections-constraint3.s
blobac6724c38d52f5c90944959f7ad9947170c19426
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "SECTIONS { zed : ONLY_IF_RO { abc = 1; *(foo) } }" > %t.script
4 # RUN: ld.lld -T %t.script %t.o -o %t.so -shared
5 # RUN: llvm-readobj --symbols %t.so | FileCheck %s
7 # CHECK: Symbols [
8 # CHECK-NOT: abc
10 .section foo,"aw"
11 .quad 1