Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / comdat-gcc-compatibility.s
blobcd35955ff0f5049da4fc62a4d0b2800cce401107
1 # REQUIRES: x86
2 # RUN: llvm-mc %s -triple x86_64-pc-win32 -defsym obj=0 -filetype=obj -o %t1.obj
3 # RUN: llvm-mc %s -triple x86_64-pc-win32 -defsym obj=1 -filetype=obj -o %t2.obj
4 # RUN: lld-link /lldmingw /noentry /dll %t1.obj %t2.obj /out:%t3.dll
5 # RUN: not lld-link /noentry /dll %t1.obj %t2.obj /out:%t3.dll
6 .if obj==0
7 .section .text$nm, "", discard, symbol
8 .else
9 .section .text$nm, "", same_size, symbol
10 .endif
11 .globl symbol
12 symbol:
13 .long 1