1 ; RUN
: llvm
-dlltool
-m i386
:x86
-64 --input
-def
%s
--output
-lib
%t.a
2 ; RUN
: llvm
-nm
%t.a | FileCheck
%s
6 TestFunction
==AltTestFunction
7 ; When creating an import library
, the DLL internal function name of
8 ; the implementation of a function isn
't visible at all.
9 ImpLibName = Implementation
10 ; A different import library name and implementation name can be mixed
11 ; with exposing it via a different name in the DLL than in code.
12 ImpLibName2 = Implementation2 == AltTestFunction2
13 ; The fact that a DLL export entry is a forward to a different DLL doesn't
14 ; matter for the import library
15 ImpLibName3
= kernel32.Sleep
17 ; CHECK
: U AltTestFunction
18 ; CHECK
-NEXT
: w TestFunction
19 ; CHECK
: U __imp_AltTestFunction
20 ; CHECK
-NEXT
: w __imp_TestFunction
22 ; CHECK
-NEXT
: T __imp_ImpLibName
23 ; CHECK
: U AltTestFunction2
24 ; CHECK
-NEXT
: w ImpLibName2
25 ; CHECK
: U __imp_AltTestFunction2
26 ; CHECK
-NEXT
: w __imp_ImpLibName2
27 ; CHECK
: T ImpLibName3
28 ; CHECK
-NEXT
: T __imp_ImpLibName3