# REQUIRES: x86
#
# RUN: llvm-dlltool -k -m i386 --input-def %p/Inputs/ordinal-only-implib.def --output-lib %t-implib.a
# RUN: llvm-mc -triple=i386-pc-win32 %s -filetype=obj -o %t.obj
# RUN: lld-link -out:%t.exe -entry:main -subsystem:console -safeseh:no -debug %t.obj %t-implib.a
# RUN: llvm-objdump -private-headers %t.exe | FileCheck --match-full-lines %s

.text
.global _main
_main:
call _ByOrdinalFunction
ret

# CHECK: The Import Tables:
# CHECK:     DLL Name: test.dll
# CHECK-NEXT:     Hint/Ord  Name
# CHECK-NEXT:            1
# CHECK-EMPTY:

# REQUIRES: x86
#
# RUN: lld-link -machine:x86 -def:%p/Inputs/ordinal-only-implib.def -implib:%t-implib.a
# RUN: llvm-mc -triple=i386-pc-win32 %s -filetype=obj -o %t.obj
# RUN: lld-link -out:%t.exe -entry:main -subsystem:console -safeseh:no -debug %t.obj %t-implib.a
# RUN: llvm-objdump -private-headers %t.exe | FileCheck --match-full-lines %s

.text
.global _main
_main:
call _ByOrdinalFunction
ret

# CHECK: The Import Tables:
# CHECK:     DLL Name: test.dll
# CHECK-NEXT:     Hint/Ord  Name
# CHECK-NEXT:            1
# CHECK-EMPTY:

Use lld-link instead of llvm-dlltool to create an implib
Use lld-link instead of llvm-dlltool to create an implib

Suggested by Martin Storsjö.

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@374142 91177308-0d34-0410-b5e6-96231b3b80d8
