summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/invalid-o-level.c
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-11-16 06:20:17 +0000
committerAlp Toker <alp@nuanti.com>2013-11-16 06:20:17 +0000
commitb504417b0398b811193ceaa4b283b8f8470fca3b (patch)
tree355d2d1e93b222a38f69750cf8c6d8e9b395e962 /clang/test/Frontend/invalid-o-level.c
parentf8d6c690c5641560c8a0caf218554a5c77c091c5 (diff)
downloadbcm5719-llvm-b504417b0398b811193ceaa4b283b8f8470fca3b.tar.gz
bcm5719-llvm-b504417b0398b811193ceaa4b283b8f8470fca3b.zip
Move remaining %clang_cc1 tests out of test/Driver
clang -cc1 skips the driver so it never made sense to include these with the Driver tests. Basic type tests and flag tests generally both go in Frontend. Now that the final -cc1 tests have been moved out of test/Driver, add a local substitution to enforce and detect future mistakes. These miscategorized tests were probably the source of confusion in r194817. llvm-svn: 194919
Diffstat (limited to 'clang/test/Frontend/invalid-o-level.c')
-rw-r--r--clang/test/Frontend/invalid-o-level.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Frontend/invalid-o-level.c b/clang/test/Frontend/invalid-o-level.c
new file mode 100644
index 00000000000..d5242c7ac06
--- /dev/null
+++ b/clang/test/Frontend/invalid-o-level.c
@@ -0,0 +1,4 @@
+// RUN: not %clang_cc1 %s -O900 2> %t.log
+// RUN: FileCheck %s -input-file=%t.log
+
+// CHECK: invalid value '900' in '-O900'
OpenPOWER on IntegriCloud