Test this differently: I saw this test fail
[oota-llvm.git] / test / Other / invalid-commandline-option.ll
index b74c49857e35bf42cee8ebe0e8f18df98f1d903d..60840fa010a9ffcb4aacddda1b5f5c21e6e3ec37 100644 (file)
@@ -1,3 +1,3 @@
-; RUN: llvm-as < /dev/null | not opt --foo > /dev/null
+; RUN: not opt --foo |& grep {Unknown command line argument}
 
 ; there is no --foo