1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* PR middle-end/46499 */ /* { dg-do compile } */ /* { dg-options "-O -fno-tree-ccp -fno-tree-dominator-opts" } */ extern void abort (void); static inline int foo (void) { return 0; } int main () { if ((foo () == 1) & (foo () == 1)) abort (); return 0; }