Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / imports-gnu-autoexport.s
blobaaca54965c5a292e9cd09d0bc3905a0e583c84ca
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-head.s -filetype=obj -o %t-dabcdh.o
4 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-func.s -filetype=obj -o %t-dabcds00000.o
5 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-tail.s -filetype=obj -o %t-dabcdt.o
6 # RUN: rm -f %t-implib.a
7 # RUN: llvm-ar rcs %t-implib.a %t-dabcdh.o %t-dabcds00000.o %t-dabcdt.o
8 # RUN: lld-link -lldmingw -dll -out:%t.dll -entry:main -subsystem:console \
9 # RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib %t-implib.a -include:func
10 # RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=EXPORT %s
12 # Check that only the single normal symbol was exported, none of the symbols
13 # from the import library.
15 EXPORT: Export {
16 EXPORT-NEXT: Ordinal: 1
17 EXPORT-NEXT: Name: main
18 EXPORT-NEXT: RVA: 0x1010
19 EXPORT-NEXT: }
20 EXPORT-NEXT-EMPTY: