Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-dlltool / coff-exports.def
blob78ca8801af2368bf27883ec42f718878c51050e4
1 ; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a
2 ; RUN: llvm-readobj --coff-exports %t.a | FileCheck %s
3 ; RUN: llvm-dlltool -m arm64 --input-def %s --output-lib %t.a
4 ; RUN: llvm-readobj --coff-exports %t.a | FileCheck %s
6 LIBRARY test.dll
7 EXPORTS
8 TestFunction1
9 TestFunction2;
10 TestFunction3 ; This is a comment
12 ; CHECK: File: test.dll
13 ; CHECK: Format: COFF-import-file
14 ; CHECK: Type: code
15 ; CHECK: Name type: name
16 ; CHECK: Symbol: __imp_TestFunction1
17 ; CHECK: Symbol: TestFunction1
18 ; CHECK: Symbol: __imp_TestFunction2{{$}}
19 ; CHECK: Symbol: TestFunction2{{$}}
20 ; CHECK: Symbol: __imp_TestFunction3{{$}}
21 ; CHECK: Symbol: TestFunction3{{$}}