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
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
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