aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr115149.c
blob: 9f6bc97dbe61aa62b54653ecce5bfa10ddd3f7c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O3 -fno-inline -fno-tree-vrp -fno-ipa-sra -fno-tree-dce -fno-tree-ch" } */

int a, c, e, f, g, h[1], i;
static int j(int b) { return 0; }
static void k(int d) {}
int main()
{
  if (h[0])
    while (1) {
	k(f && j(i && (h[g] = e)));
	while (a)
	  c ^= 1;
    }
  return 0;
}