Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / fixed.test
bloba21743f724a9aaa91f3dd6725ced7783a3cdef0d
1 # REQUIRES: x86
2 # RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
4 # RUN: lld-link -safeseh:no %t.obj /fixed %p/Inputs/std32.lib /subsystem:console \
5 # RUN:   /entry:main@0 /debug /out:%t.fixed.exe
6 # RUN: llvm-readobj --file-headers %t.fixed.exe | \
7 # RUN:   FileCheck -check-prefix=EXEFIXED %s
9 # RUN: lld-link -safeseh:no %t.obj %p/Inputs/std32.lib /subsystem:console \
10 # RUN:   /entry:main@0 /debug /out:%t.exe
11 # RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=EXEREL %s
13 # RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
15 # RUN: lld-link -safeseh:no %t.obj /dll /fixed /debug /out:%t.fixed.dll
16 # RUN: llvm-readobj --file-headers %t.fixed.dll | FileCheck -check-prefix=DLLFIXED %s
18 # RUN: lld-link -safeseh:no %t.obj /dll /debug /out:%t.dll
19 # RUN: llvm-readobj --file-headers %t.dll | FileCheck -check-prefix=DLLREL %s
21 EXEFIXED-NOT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
22 DLLFIXED-NOT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
23 EXEREL: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
24 DLLREL: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE