summaryrefslogtreecommitdiff
path: root/test/ELF/driver.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/driver.test')
-rw-r--r--test/ELF/driver.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ELF/driver.test b/test/ELF/driver.test
index 95e2100b4abf7..80d19cb4d6a8e 100644
--- a/test/ELF/driver.test
+++ b/test/ELF/driver.test
@@ -19,6 +19,8 @@
# RUN: ld.lld --version 2>&1 | FileCheck -check-prefix=VERSION %s
# VERSION: LLD
+# RUN: not ld.lld -v 2>&1 | FileCheck -check-prefix=VERSION %s
+
## Attempt to link DSO with -r
# RUN: ld.lld -shared %t -o %t.so
# RUN: not ld.lld -r %t.so %t -o %tfail 2>&1 | FileCheck -check-prefix=ERR %s
@@ -44,6 +46,14 @@
# RUN: not ld.lld -shared -pie %t -o %tfail 2>&1 | FileCheck -check-prefix=ERR6 %s
# ERR6: -shared and -pie may not be used together
+## "--output=foo" is equivalent to "-o foo".
+# RUN: not ld.lld %t --output=/no/such/file 2>&1 | FileCheck -check-prefix=ERR7 %s
+# ERR7: failed to open /no/such/file
+
+## "-output=foo" is equivalent to "-o utput=foo".
+# RUN: not ld.lld %t -output=/no/such/file 2>&1 | FileCheck -check-prefix=ERR8 %s
+# ERR8: failed to open utput=/no/such/file
+
.globl _start
_start:
nop