Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / linkerscript / symbol-ordering-file2.s
blob31746ae0a333cd6e549a21913db8b7020b97464e
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 ## Check we do not crash when trying to order linker script symbol.
6 # RUN: echo "bar" > %t.ord
7 # RUN: echo "SECTIONS { bar = 1; }" > %t.script
8 # RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t.script \
9 # RUN: -o %t.out 2>&1 | FileCheck %s
10 # CHECK: warning: <internal>: unable to order absolute symbol: bar
12 ## Check we do not crash when trying to order --defsym symbol.
14 # RUN: echo "bar" > %t.ord
15 # RUN: ld.lld --symbol-ordering-file %t.ord %t.o -defsym=bar=1 \
16 # RUN: -o %t.out 2>&1 | FileCheck %s