diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/Wno-all.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/Wno-all.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wno-all.c b/gcc/testsuite/gcc.dg/Wno-all.c new file mode 100644 index 000000000..de55bbcda --- /dev/null +++ b/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" } */ +} + |