[Dexter][NFC] Add Missing Commands to Commands.md Contents
[llvm-project.git] / lld / test / COFF / driver.test
blob143d5f74fdba4ef39008dedc0397607de5988429
1 # RUN: not lld-link nosuchfile.obj >& %t.log
2 # RUN: FileCheck -check-prefix=MISSING %s < %t.log
3 MISSING: 'nosuchfile.obj': {{[Nn]}}o such file or directory
5 # RUN: lld-link --version | FileCheck -check-prefix=VERSION %s
6 VERSION: {{LLD [0-9]+\.[0-9]+}}
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
11 BADFILE: bad file type. Did you specify a DLL instead of an import library?
13 # RUN: lld-link /lib /help | FileCheck -check-prefix=LIBHELP %s
14 LIBHELP: OVERVIEW: LLVM Lib
16 # RUN: not lld-link /WX /lib 2>&1 | FileCheck -check-prefix=LIBBAD %s
17 LIBBAD: ignoring /lib since it's not the first argument
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
21 DIR: cannot open output file
23 # RUN: not lld-link -version 2>&1 | FileCheck -check-prefix=SPELLVERSION %s
24 SPELLVERSION: ignoring unknown argument '-version', did you mean '--version'
25 SPELLVERSION: no input files
27 # RUN: not lld-link -nodefaultlibs 2>&1 | FileCheck -check-prefix=SPELLNODEFAULTLIB %s
28 SPELLNODEFAULTLIB: ignoring unknown argument '-nodefaultlibs', did you mean '-nodefaultlib'
29 SPELLNODEFAULTLIB: no input files
31 # RUN: not lld-link /nodefaultlibs 2>&1 | FileCheck -check-prefix=SPELLNODEFAULTLIB_SLASH %s
32 SPELLNODEFAULTLIB_SLASH: could not open '/nodefaultlibs': {{.*}}; did you mean '/nodefaultlib'
33 SPELLNODEFAULTLIB_SLASH-NOT: no input files
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
38 SPELLFORCE: could not open 'force': {{.*}}; did you mean '/force'
39 SPELLFORCE-NOT: no input files