test: add COFF test for library extension handling

Ensure that an extension other than .dll, .exe is preserved as per the
behaviour of link.

llvm-svn: 308386
This commit is contained in:
Saleem Abdulrasool 2017-07-18 22:25:07 +00:00
parent a4148c6eed
commit 08c83ea0f3
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
LIBRARY library.ext
EXPORTS
f

View File

@ -0,0 +1,7 @@
# RUN: mkdir -p %T && cd %T
# RUN: lld-link /machine:x64 /def:%S/Inputs/extension.def
# RUN: llvm-ar t library.lib | FileCheck %s
CHECK: library.ext
CHECK-NOT: library.dll
CHECK-NOT: library.exe