summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr12517.c
blob: af82db8f46a3ea1c70f2c56a4170c26c754cf823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*  PR tree-optimization/12517  */

int f(void);
void g(int);
void h(int a, int b, int c)
{
    int i = f();

    if (b && (i & 4))
	g(i & 8 ? 0 : 1);
    if (a) {
	do {
	    if (i & 8)
		g(0);
	    if (i & 4)
		g(i ? 0 : 1);
	} while (--c);
    }
}