Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / alias-implib.s
blob22c089555c0025cd7745b5e9d46a1ff0c611048e
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-mingw32 -o %t.o %s
4 # RUN: lld-link -lldmingw -entry:main -out:%t.exe %t.o %S/Inputs/alias-implib.lib -verbose 2>&1 | FileCheck %s
6 # Check that the undefined (weak) alias symbol (with an existing lazy
7 # __imp_alias) doesn't trigger trying to load __imp_alias for autoimport,
8 # when the weak alias target actually does exist.
10 # CHECK-NOT: Loading lazy{{.*}}for automatic import
12 .text
13 .globl main
14 main:
15 call alias
16 ret
18 # alias-implib.lib was created with "llvm-dlltool -m i386:x86-64
19 # -l alias-implib.lib -d alias-implib.def" with this def snippet:
20 # LIBRARY lib.dll
21 # EXPORTS
22 # realfunc
23 # alias == realfunc