summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-27 07:10:14 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-27 07:10:14 +0000
commit8823d12a53f46619f3f7ceb464fa35c7c5e18bef (patch)
tree1bd6ac131a0343b13f11113adb983e3409ebf9c6
parent5639e9e8fb52a23216e6c805e7e720e1e21a4ed5 (diff)
downloadbcm5719-llvm-8823d12a53f46619f3f7ceb464fa35c7c5e18bef.tar.gz
bcm5719-llvm-8823d12a53f46619f3f7ceb464fa35c7c5e18bef.zip
Add test for -Wno-everything.
llvm-svn: 149123
-rw-r--r--clang/test/Frontend/Wno-everything.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Frontend/Wno-everything.c b/clang/test/Frontend/Wno-everything.c
new file mode 100644
index 00000000000..ca70ca4c642
--- /dev/null
+++ b/clang/test/Frontend/Wno-everything.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -verify -Wno-everything -Wsign-compare %s
+
+int f0(int, unsigned);
+int f0(int x, unsigned y) {
+ if (x=3);
+ return x < y; // expected-warning {{comparison of integers}}
+}
OpenPOWER on IntegriCloud