summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wno-all.c
blob: de55bbcdacb3d8a4e854f051a4a551cea5b66cef (plain)
1
2
3
4
5
6
7
8
9
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" } */
}