]> granicus.if.org Git - clang/commitdiff
Make test/Driver/clang_f_opts.c not write to the test dir
authorHans Wennborg <hans@hanshq.net>
Mon, 18 Nov 2013 21:58:33 +0000 (21:58 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 18 Nov 2013 21:58:33 +0000 (21:58 +0000)
After r195009, the test would write a .o file to the test dir. Send that to
/dev/null instead. Also fix the typo in test/Frontend/invalid-o-level.c.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195047 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/clang_f_opts.c
test/Frontend/invalid-o-level.c

index e6867ab18a2c0560a410fb6d7dce520b096c7097..3f3a8f6db077ee7b54cb4267078f64111ddbc701 100644 (file)
 // CHECK-MAX-O: warning: -O4 is equivalent to -O3
 // CHECK-MAX-O: -O3
 
-// RUN: %clang -S -O20 %s 2>&1 | FileCheck -check-prefix=CHECK-INVALID-O %s
+// RUN: %clang -S -O20 -o /dev/null %s 2>&1 | FileCheck -check-prefix=CHECK-INVALID-O %s
 // CHECK-INVALID-O: warning: optimization level '-O20' is unsupported; using '-O3' instead.
 
 // Test that we don't error on these.
index 1b800188e0e41d156deedef7547f819ec4f5c36b..1b5c51f65a5a1ff1515a77959593918a7996ca7f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -O900 -o /dev/nul 2> %t.log
+// RUN: %clang_cc1 %s -O900 -o /dev/null 2> %t.log
 // RUN: FileCheck %s -input-file=%t.log
 
 // CHECK: warning: optimization level '-O900' is unsupported; using '-O3' instead.