summaryrefslogtreecommitdiff
path: root/test/elf/linkerscript/invalid-script-cli-1.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/elf/linkerscript/invalid-script-cli-1.test')
-rw-r--r--test/elf/linkerscript/invalid-script-cli-1.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/elf/linkerscript/invalid-script-cli-1.test b/test/elf/linkerscript/invalid-script-cli-1.test
new file mode 100644
index 0000000000000..904ba17557c0c
--- /dev/null
+++ b/test/elf/linkerscript/invalid-script-cli-1.test
@@ -0,0 +1,10 @@
+# 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