blob: ebff4bb4608f20af9d431855faab268572efbd65 [file] [log] [blame]
Martin Storsjö4d09ed92020-07-24 00:05:55 +03001Test 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