• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
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
5
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.
9
10# CHECK-NOT: Loading lazy{{.*}}for automatic import
11
12    .text
13    .globl main
14main:
15    call alias
16    ret
17
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
24