Martin Storsjö | 4d09ed9 | 2020-07-24 00:05:55 +0300 | [diff] [blame] | 1 | Test that import libraries (and the members thereof) can be added to another |
2 | static library. | ||||
3 | |||||
4 | RUN: rm -rf %t | ||||
5 | RUN: mkdir -p %t | ||||
6 | |||||
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 | ||||
10 | |||||
11 | RUN: llvm-ar t %t/newlib.lib | FileCheck %s | ||||
12 | CHECK: lib.dll |