aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/Wno-all.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/Wno-all.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/Wno-all.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/Wno-all.c b/gcc-4.9/gcc/testsuite/gcc.dg/Wno-all.c
new file mode 100644
index 000000000..de55bbcda
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/Wno-all.c
@@ -0,0 +1,10 @@
+/* PR 30437: Test negative of -Wall
+ Don't change this without changing Wall.c as well. */
+/* { dg-do compile } */
+/* { dg-options "-Wall -Wno-all" } */
+
+void foo(int a)
+{
+ 5 * (a == 1) | (a == 2); /* { dg-bogus "no effect" "no effect" } */
+}
+