Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-dlltool / coff-decorated.def
blob856804686168b17445589a518bbdfa224b83adbf
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@
12 StdcallExportName@4=StdcallInternalFunction@4
13 OtherStdcallExportName@4=CdeclInternalFunction
14 CdeclExportName=StdcallInternalFunction@4
16 ; CHECK: Name type: noprefix
17 ; CHECK-NEXT: Symbol: __imp__CdeclFunction
18 ; CHECK-NEXT: Symbol: _CdeclFunction
19 ; CHECK: Name type: undecorate
20 ; CHECK-NEXT: Symbol: __imp__StdcallFunction@4
21 ; CHECK-NEXT: Symbol: _StdcallFunction@4
22 ; CHECK: Name type: undecorate
23 ; CHECK-NEXT: Symbol: __imp_@FastcallFunction@4
24 ; CHECK-NEXT: Symbol: @FastcallFunction@4
25 ; CHECK: Name type: name
26 ; CHECK-NEXT: Symbol: __imp_??_7exception@@6B@
27 ; CHECK-NEXT: Symbol: ??_7exception@@6B@
28 ; CHECK-NM: W _StdcallAlias@4
29 ; CHECK-NM: U _StdcallFunction@4
30 ; CHECK: Name type: undecorate
31 ; CHECK-NEXT: Symbol: __imp__StdcallExportName@4{{$}}
32 ; CHECK-NEXT: Symbol: _StdcallExportName@4{{$}}
33 ; CHECK: Name type: undecorate
34 ; CHECK-NEXT: Symbol: __imp__OtherStdcallExportName@4{{$}}
35 ; CHECK-NEXT: Symbol: _OtherStdcallExportName@4{{$}}
36 ; CHECK: Name type: noprefix
37 ; CHECK-NEXT: Symbol: __imp__CdeclExportName
38 ; CHECK-NEXT: Symbol: _CdeclExportName