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" } */ }