2015-06-01 03:17:14 +08:00
|
|
|
# RUN: cp %p/Inputs/hello64.obj %T
|
|
|
|
# RUN: cp %p/Inputs/std64.lib %T
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: not lld-link /out:%t.exe /entry:main /subsystem:console \
|
2015-06-01 03:17:14 +08:00
|
|
|
# RUN: hello64.obj /defaultlib:std64.lib >& %t.log
|
|
|
|
# RUN: FileCheck -check-prefix=CHECK1 %s < %t.log
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: not lld-link /out:%t.exe /entry:main /subsystem:console \
|
2015-06-01 03:17:14 +08:00
|
|
|
# RUN: hello64 /defaultlib:std64.lib >& %t.log
|
|
|
|
# RUN: FileCheck -check-prefix=CHECK2 %s < %t.log
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /libpath:%T /out:%t.exe /entry:main \
|
2015-06-01 03:17:14 +08:00
|
|
|
# RUN: /subsystem:console hello64.obj /defaultlib:std64.lib \
|
|
|
|
# RUN: /nodefaultlib:std64.lib >& %t.log || true
|
|
|
|
# RUN: FileCheck -check-prefix=CHECK3 %s < %t.log
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /libpath:%T /out:%t.exe /entry:main \
|
2015-06-01 03:17:14 +08:00
|
|
|
# RUN: /subsystem:console hello64.obj /defaultlib:std64 \
|
|
|
|
# RUN: /nodefaultlib:std64.lib >& %t.log || true
|
|
|
|
# RUN: FileCheck -check-prefix=CHECK3 %s < %t.log
|
|
|
|
|
2017-10-07 07:43:54 +08:00
|
|
|
CHECK1: error: could not open hello64.obj: {{[Nn]}}o such file or directory
|
|
|
|
CHECK2: error: could not open hello64: {{[Nn]}}o such file or directory
|
|
|
|
CHECK3: error: {{.*}}hello64.obj: undefined symbol: MessageBoxA
|
2015-06-01 03:17:14 +08:00
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /libpath:%T /out:%t.exe /entry:main \
|
2015-06-01 04:10:11 +08:00
|
|
|
# RUN: /subsystem:console hello64.obj /defaultlib:std64.lib
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: env LIB=%T lld-link /out:%t.exe /entry:main \
|
2015-06-01 03:17:14 +08:00
|
|
|
# RUN: /subsystem:console hello64.obj /defaultlib:std64.lib
|