summaryrefslogtreecommitdiff
path: root/clang/test/Frontend/Wno-everything.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Frontend/Wno-everything.c')
-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 0000000..ca70ca4
--- /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}}
+}