aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr71366-2.c
blob: f32875eb9f215c599c3fdf38431321f80411c036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */

char a[1];
int b;
void fn1()
{
  int i;
  for (;;)
    {
      i = 0;
      for (; i < 6; i++)
	{
	  if (b)
	    for (;;)
	      ;
	  int c = a[i];
	  __builtin_printf("", i);
	}
    }
}