2015-08-07 00:47:46 +08:00
|
|
|
# RUN: not lld-link nosuchfile.obj >& %t.log
|
2015-05-29 03:09:30 +08:00
|
|
|
# RUN: FileCheck -check-prefix=MISSING %s < %t.log
|
2019-05-24 01:58:33 +08:00
|
|
|
MISSING: 'nosuchfile.obj': {{[Nn]}}o such file or directory
|
2017-10-23 22:57:53 +08:00
|
|
|
|
|
|
|
# RUN: lld-link --version | FileCheck -check-prefix=VERSION %s
|
|
|
|
VERSION: {{LLD [0-9]+\.[0-9]+}}
|
2018-03-02 07:11:30 +08:00
|
|
|
|
|
|
|
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
|
|
|
# RUN: lld-link /out:%t.dll /dll %t.obj
|
|
|
|
# RUN: not lld-link /out:%t.exe %t.dll 2>&1 | FileCheck -check-prefix=BADFILE %s
|
|
|
|
BADFILE: bad file type. Did you specify a DLL instead of an import library?
|
2018-07-14 12:07:51 +08:00
|
|
|
|
2018-07-14 19:47:23 +08:00
|
|
|
# RUN: lld-link /lib /help | FileCheck -check-prefix=LIBHELP %s
|
2018-07-14 12:07:51 +08:00
|
|
|
LIBHELP: OVERVIEW: LLVM Lib
|
|
|
|
|
|
|
|
# RUN: not lld-link /WX /lib 2>&1 | FileCheck -check-prefix=LIBBAD %s
|
|
|
|
LIBBAD: ignoring /lib since it's not the first argument
|
2019-03-12 00:30:55 +08:00
|
|
|
|
|
|
|
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
|
|
|
# RUN: not lld-link /out:/ %t.obj 2>&1 | FileCheck -check-prefix=DIR %s
|
|
|
|
DIR: cannot open output file
|
2019-05-07 21:48:30 +08:00
|
|
|
|
|
|
|
# RUN: not lld-link -version 2>&1 | FileCheck -check-prefix=SPELLVERSION %s
|
|
|
|
SPELLVERSION: ignoring unknown argument '-version', did you mean '--version'
|
|
|
|
SPELLVERSION: no input files
|
|
|
|
|
|
|
|
# RUN: not lld-link -nodefaultlibs 2>&1 | FileCheck -check-prefix=SPELLNODEFAULTLIB %s
|
|
|
|
SPELLNODEFAULTLIB: ignoring unknown argument '-nodefaultlibs', did you mean '-nodefaultlib'
|
|
|
|
SPELLNODEFAULTLIB: no input files
|
2019-05-24 01:58:33 +08:00
|
|
|
|
|
|
|
# RUN: not lld-link /nodefaultlibs 2>&1 | FileCheck -check-prefix=SPELLNODEFAULTLIB_SLASH %s
|
|
|
|
SPELLNODEFAULTLIB_SLASH: could not open '/nodefaultlibs': {{.*}}; did you mean '/nodefaultlib'
|
|
|
|
SPELLNODEFAULTLIB_SLASH-NOT: no input files
|
|
|
|
|
|
|
|
# Getting flags as typo corrections for normal input files is a side effect
|
|
|
|
# of how spell checking for /-style flags is implemented.
|
|
|
|
# RUN: not lld-link force 2>&1 | FileCheck -check-prefix=SPELLFORCE %s
|
|
|
|
SPELLFORCE: could not open 'force': {{.*}}; did you mean '/force'
|
|
|
|
SPELLFORCE-NOT: no input files
|