[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / tools / llvm-lib / empty.test
blob37c841f8db46a49503313d18d0fb389b13d98f1f
1 Create import libraries with empty exports and make sure that archive symbols
2 are properly populated.
4 RUN: split-file %s %t.dir && cd %t.dir
6 RUN: llvm-lib -machine:arm64 -out:arm64.lib -def:test.def
7 RUN: llvm-nm --print-armap arm64.lib | FileCheck --check-prefixes=CHECK,NOECMAP %s
9 RUN: llvm-lib -machine:arm64ec -out:arm64ec.lib -def:test.def
10 RUN: llvm-nm --print-armap arm64ec.lib | FileCheck --check-prefixes=CHECK,ECMAP %s
12 CHECK:      Archive map
13 CHECK-NEXT: __IMPORT_DESCRIPTOR_test in test.dll
14 CHECK-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll
15 CHECK-NEXT: test_NULL_THUNK_DATA in test.dll
16 CHECK-EMPTY:
18 ECMAP:      Archive EC map
19 ECMAP-NEXT: __IMPORT_DESCRIPTOR_test in test.dll
20 ECMAP-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll
21 ECMAP-NEXT: test_NULL_THUNK_DATA in test.dll
23 NOECMAP-NOT: Archive EC map
25 #--- test.def
26 LIBRARY test.dll
27 EXPORTS