aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr107833.c
blob: 0edf7c328ba17ae2d98b282243c60c1308d73a9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* { dg-do run } */

int a, b[1] = { 0 }, c, *d = b, e, *f, g;

__attribute__((noipa)) int
foo (const char *x)
{
  (void) x;
  return 0;
}

int
main ()
{
  for (int h = 0; a < 2; a++)
    {
      int i;
      for (g = 0; g < 2; g++)
	if (a < h)
	  {
	    e = i % 2;
	    c = *f;
	  }
      for (h = 0; h < 3; h++)
	{
	  if (d)
	    break;
	  i--;
	  foo ("0");
	}
    }
  return 0;
}