[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git] / gcc / testsuite / gcc.dg / pr34965.c
blob381e46fae4399380e1a028f50c960928efb81ded
1 /* PR c++/34965 */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
5 int foo (int);
7 void
8 bar (int i, int j, double k)
10 foo (i && j) (); /* { dg-error "\\(i != 0 \\&\\& j != 0\\)" } */
11 foo (!i || !j) (); /* { dg-error "\\(i == 0 \\|\\| j == 0\\)" } */
12 foo (!i == !j) (); /* { dg-error "\\(i != 0 \\^ j == 0\\)" } */