• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
4
5LIBRARY test.dll
6EXPORTS
7CdeclFunction
8StdcallFunction@4
9@FastcallFunction@4
10StdcallAlias@4==StdcallFunction@4
11??_7exception@@6B@
12StdcallExportName@4=StdcallInternalFunction@4
13OtherStdcallExportName@4=CdeclInternalFunction
14CdeclExportName=StdcallInternalFunction@4
15
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
39