1# RUN: not lld-link nosuchfile.obj >& %t.log 2# RUN: FileCheck -check-prefix=MISSING %s < %t.log 3MISSING: 'nosuchfile.obj': {{[Nn]}}o such file or directory 4 5# RUN: lld-link --version | FileCheck -check-prefix=VERSION %s 6VERSION: {{LLD [0-9]+\.[0-9]+}} 7 8# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj 9# RUN: lld-link /out:%t.dll /dll %t.obj 10# RUN: not lld-link /out:%t.exe %t.dll 2>&1 | FileCheck -check-prefix=BADFILE %s 11BADFILE: bad file type. Did you specify a DLL instead of an import library? 12 13# RUN: lld-link /lib /help | FileCheck -check-prefix=LIBHELP %s 14LIBHELP: OVERVIEW: LLVM Lib 15 16# RUN: env LLD_IN_TEST=1 not lld-link /WX /lib 2>&1 | FileCheck -check-prefix=LIBBAD %s 17LIBBAD: ignoring /lib since it's not the first argument 18 19# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj 20# RUN: not lld-link /out:/ %t.obj 2>&1 | FileCheck -check-prefix=DIR %s 21DIR: cannot open output file 22 23# RUN: env LLD_IN_TEST=1 not lld-link -version 2>&1 | FileCheck -check-prefix=SPELLVERSION %s 24SPELLVERSION: ignoring unknown argument '-version', did you mean '--version' 25SPELLVERSION: no input files 26 27# RUN: env LLD_IN_TEST=1 not lld-link -nodefaultlibs 2>&1 | FileCheck -check-prefix=SPELLNODEFAULTLIB %s 28SPELLNODEFAULTLIB: ignoring unknown argument '-nodefaultlibs', did you mean '-nodefaultlib' 29SPELLNODEFAULTLIB: no input files 30 31# RUN: not lld-link /nodefaultlibs 2>&1 | FileCheck -check-prefix=SPELLNODEFAULTLIB_SLASH %s 32SPELLNODEFAULTLIB_SLASH: could not open '/nodefaultlibs': {{.*}}; did you mean '/nodefaultlib' 33SPELLNODEFAULTLIB_SLASH-NOT: no input files 34 35# Getting flags as typo corrections for normal input files is a side effect 36# of how spell checking for /-style flags is implemented. 37# RUN: not lld-link force 2>&1 | FileCheck -check-prefix=SPELLFORCE %s 38SPELLFORCE: could not open 'force': {{.*}}; did you mean '/force' 39SPELLFORCE-NOT: no input files 40