Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-dlltool / coff-weak-exports.def
blob60f835233a5558b35e876526fa9a91c38412cefd
1 ; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a
2 ; RUN: llvm-nm %t.a | FileCheck %s
3 ; RUN: llvm-readobj %t.a | FileCheck -check-prefix=ARCH %s
5 LIBRARY test.dll
6 EXPORTS
7 TestFunction==AltTestFunction
8 ; When creating an import library, the DLL internal function name of
9 ; the implementation of a function isn't visible at all.
10 ImpLibName = Implementation
11 ; A different import library name and implementation name can be mixed
12 ; with exposing it via a different name in the DLL than in code.
13 ImpLibName2 = Implementation2 == AltTestFunction2
14 ; The fact that a DLL export entry is a forward to a different DLL doesn't
15 ; matter for the import library
16 ImpLibName3 = kernel32.Sleep
18 ; CHECK: U AltTestFunction
19 ; CHECK-NEXT: W TestFunction
20 ; CHECK: U __imp_AltTestFunction
21 ; CHECK-NEXT: W __imp_TestFunction
22 ; CHECK: T ImpLibName
23 ; CHECK-NEXT: T __imp_ImpLibName
24 ; CHECK: U AltTestFunction2
25 ; CHECK-NEXT: W ImpLibName2
26 ; CHECK: U __imp_AltTestFunction2
27 ; CHECK-NEXT: W __imp_ImpLibName2
28 ; CHECK: T ImpLibName3
29 ; CHECK-NEXT: T __imp_ImpLibName3
31 ; ARCH-NOT: unknown arch