Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-dlltool / coff-decorated.def
blob3885abca836fd5566d524adc413c1c82138708e9
1 ; RUN: llvm-dlltool -k -m i386 --input-def %s --output-lib %t.a
2 ; RUN: llvm-readobj %t.a | FileCheck %s
3 ; RUN: llvm-nm %t.a | FileCheck %s -check-prefix=CHECK-NM
5 LIBRARY test.dll
6 EXPORTS
7 CdeclFunction
8 StdcallFunction@4
9 @FastcallFunction@4
10 StdcallAlias@4==StdcallFunction@4
11 ??_7exception@@6B@
13 ; CHECK: Name type: noprefix
14 ; CHECK: Symbol: __imp__CdeclFunction
15 ; CHECK: Symbol: _CdeclFunction
16 ; CHECK: Name type: undecorate
17 ; CHECK: Symbol: __imp__StdcallFunction@4
18 ; CHECK: Symbol: _StdcallFunction@4
19 ; CHECK: Name type: undecorate
20 ; CHECK: Symbol: __imp_@FastcallFunction@4
21 ; CHECK: Symbol: @FastcallFunction@4
22 ; CHECK: Name type: name
23 ; CHECK: Symbol: __imp_??_7exception@@6B@
24 ; CHECK: Symbol: ??_7exception@@6B@
25 ; CHECK-NM: W _StdcallAlias@4
26 ; CHECK-NM: U _StdcallFunction@4