aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr23929.c
blob: 2ec658421d997cef2e487ccae27c1a06203d721c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR tree-optimization/23929 */
/* { dg-require-stack-size "2048+8" } */

extern void bar (char *);

void
foo (int n, char *z)
{
  char b[2048];
  int x, y;

  bar (b);
  for (y = 0; y < 60; y++)
    if (n == 600)
      for (x = 0; x < 320;)
	{
	  *z++ = b[x];
	  x += 1;
	  *z++ = b[x];
	  x += 1;
	}
}