summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr3074-1.c
blob: 4716b79da960a3e2d673197a634d1ad7a31d9108 (plain)
1
2
3
4
5
6
7
8
9
/* PR middle-end/3074  */
/* { dg-do compile } */
/* { dg-options "-Wall" } */

void foo(int a)
{
  5 * (a == 1) | (a == 2);  /* { dg-warning "no effect" "no effect" } */
}