1 Test that import libraries (and the members thereof) can be added to another
7 RUN: echo -e "EXPORTS\nMyFunc" > %t/lib.def
8 RUN: llvm-dlltool -m i386:x86-64 -l %t/lib.lib -d %t/lib.def -D lib.dll
9 RUN: llvm-lib -out:%t/newlib.lib %t/lib.lib
11 RUN: llvm-ar t %t/newlib.lib | FileCheck %s
14 Test that import libraries can be created from a def file
16 RUN: echo -e "NAME lib.dll\nEXPORTS\nMyFunc\nAnotherFunc" > %t/implib.def
17 RUN: llvm-lib -out:%t/implib.lib -def:%t/implib.def -machine:x64
19 RUN: llvm-ar t %t/implib.lib | FileCheck %s
21 RUN: llvm-nm --print-armap %t/implib.lib | FileCheck --check-prefix=SYMTAB %s
23 SYMTAB-NEXT: AnotherFunc in lib.dll
24 SYMTAB-NEXT: MyFunc in lib.dll