Files
clang-p2996/lld/test/COFF/lib.test
Saleem Abdulrasool bc7ff7027e COFF: add support for lib mode usage
When link is invoked with `/def:` and no input files, it behaves as if
`lib.exe` was invoked.  Emulate this behaviour, generating the import
library from the def file that was passed.  Because there is no input to
actually generate the dll, we simply process the def file early and exit
once we have created the import library.

llvm-svn: 305502
2017-06-15 20:39:58 +00:00

12 lines
258 B
Plaintext

# RUN: lld-link /machine:x64 /def:%S/Inputs/library.def /out:%t.lib
# RUN: llvm-nm %t.lib | FileCheck %s
CHECK: 00000000 R __imp_constant
CHECK: 00000000 R constant
CHECK: 00000000 D __imp_data
CHECK: 00000000 T __imp_function
CHECK: 00000000 T function