Files
clang-p2996/lld/test/elf/linkerscript/invalid-script-cli-1.test
Meador Inge 84f613532f LinkerScript: Add -T <scriptfile> option
GNU LD has an option named -T/--script which allows a user to specify
a linker script to be used [1].  LLD already accepts linker scripts
without this option, but the option is widely used.  Therefore it is
best to support it in LLD as well.

[1] https://sourceware.org/binutils/docs/ld/Options.html#Options

llvm-svn: 232183
2015-03-13 18:15:01 +00:00

11 lines
360 B
Plaintext

# Check that the -T/--script options issue an error when passed
# filenames for files that do not exist.
RUN: not lld -flavor gnu -target x86_64 -T idonotexist.ls 2> %t.err
RUN: FileCheck %s < %t.err
RUN: not lld -flavor gnu -target x86_64 --script=idonotexist.ls 2> %t.err
RUN: FileCheck %s < %t.err
CHECK: {{.*}}lld: cannot find file {{.*}}idonotexist.ls