aboutsummaryrefslogtreecommitdiffstats
path: root/test/Other
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-23 01:55:25 +0000
committerDan Gohman <gohman@apple.com>2008-02-23 01:55:25 +0000
commite411a2d6ef16f2d511c6d6867e35d84c508aaa15 (patch)
tree0c0374ef135afd0633746c6348863ee2d3f6f5c2 /test/Other
parent0b2996bf9697a3ef0a2986a590b5af889dd7660d (diff)
downloadexternal_llvm-e411a2d6ef16f2d511c6d6867e35d84c508aaa15.zip
external_llvm-e411a2d6ef16f2d511c6d6867e35d84c508aaa15.tar.gz
external_llvm-e411a2d6ef16f2d511c6d6867e35d84c508aaa15.tar.bz2
Fix a bug that caused opt and other tools to silently ignore
invalid command-line options. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/invalid-commandline-option.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Other/invalid-commandline-option.ll b/test/Other/invalid-commandline-option.ll
new file mode 100644
index 0000000..b74c498
--- /dev/null
+++ b/test/Other/invalid-commandline-option.ll
@@ -0,0 +1,3 @@
+; RUN: llvm-as < /dev/null | not opt --foo > /dev/null
+
+; there is no --foo