]> granicus.if.org Git - clang/commitdiff
Add test for -Wno-everything.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 27 Jan 2012 07:10:14 +0000 (07:10 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 27 Jan 2012 07:10:14 +0000 (07:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149123 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/Wno-everything.c [new file with mode: 0644]

diff --git a/test/Frontend/Wno-everything.c b/test/Frontend/Wno-everything.c
new file mode 100644 (file)
index 0000000..ca70ca4
--- /dev/null
@@ -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}}
+}