1 /* PR middle-end/3074  */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall" } */
4 
foo(int a)5 void foo(int a)
6 {
7   5 * (a == 1) | (a == 2);  /* { dg-warning "no effect" "no effect" } */
8 }
9 
10