xref: /llvm-project/llvm/test/tools/llvm-dlltool/no-leading-underscore.def (revision a2e5287d5a499521aaf093f812cbedcbbc2a4bc8)
1; RUN: llvm-dlltool -k -m i386 --input-def %s --output-lib %t.a --no-leading-underscore --kill-at
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
7func
8alias == func
9DecoratedFunction@4
10
11; CHECK:      Name type: name
12; CHECK-NEXT: Export name: func
13; CHECK-NEXT: Symbol: __imp_func
14; CHECK-NEXT: Symbol: func
15; CHECK:      Name type: undecorate
16; CHECK-NEXT: Export name: DecoratedFunction
17; CHECK-NEXT: Symbol: __imp_DecoratedFunction@4
18; CHECK-NEXT: Symbol: DecoratedFunction@4
19
20; CHECK-NM: W alias
21; CHECK-NM: U func
22