1Test that import libraries (and the members thereof) can be added to another 2static library. 3 4RUN: rm -rf %t 5RUN: mkdir -p %t 6 7RUN: echo -e "EXPORTS\nMyFunc" > %t/lib.def 8RUN: llvm-dlltool -m i386:x86-64 -l %t/lib.lib -d %t/lib.def -D lib.dll 9RUN: llvm-lib -out:%t/newlib.lib %t/lib.lib 10 11RUN: llvm-ar t %t/newlib.lib | FileCheck %s 12CHECK: lib.dll 13 14Test that import libraries can be created from a def file 15 16RUN: echo -e "NAME lib.dll\nEXPORTS\nMyFunc\nAnotherFunc" > %t/implib.def 17RUN: llvm-lib -out:%t/implib.lib -def:%t/implib.def -machine:x64 18 19RUN: llvm-ar t %t/implib.lib | FileCheck %s 20 21RUN: llvm-nm --print-armap %t/implib.lib | FileCheck --check-prefix=SYMTAB %s 22SYMTAB: Archive map 23SYMTAB-NEXT: AnotherFunc in lib.dll 24SYMTAB-NEXT: MyFunc in lib.dll 25