Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-dlltool / coff-exports.def
blob91a7e27ea4720fecc5d25ad26390cdf6e6810a3c
1 ; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a
2 ; RUN: llvm-readobj %t.a | FileCheck %s
3 ; RUN: llvm-nm --print-armap %t.a | FileCheck --check-prefix=SYMTAB %s
4 ; RUN: llvm-dlltool -m arm64 --input-def %s --output-lib %t.a
5 ; RUN: llvm-readobj %t.a | FileCheck %s
6 ; RUN: llvm-nm --print-armap %t.a | FileCheck --check-prefix=SYMTAB %s
8 LIBRARY test.dll
9 EXPORTS
10 TestFunction1
11 TestFunction2;
12 TestFunction3 ; This is a comment
13 AnotherFunction
15 ; CHECK: File: test.dll
16 ; CHECK: Format: COFF-import-file
17 ; CHECK: Type: code
18 ; CHECK: Name type: name
19 ; CHECK-NEXT: Symbol: __imp_TestFunction1
20 ; CHECK-NEXT: Symbol: TestFunction1
21 ; CHECK: Name type: name
22 ; CHECK-NEXT: Symbol: __imp_TestFunction2{{$}}
23 ; CHECK-NEXT: Symbol: TestFunction2{{$}}
24 ; CHECK: Name type: name
25 ; CHECK-NEXT: Symbol: __imp_TestFunction3{{$}}
26 ; CHECK-NEXT: Symbol: TestFunction3{{$}}
28 ; SYMTAB: Archive map
29 ; SYMTAB: TestFunction1 in test.dll
30 ; SYMTAB: TestFunction2 in test.dll
31 ; SYMTAB: TestFunction3 in test.dll
32 ; SYMTAB: AnotherFunction in test.dll