aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr92891.c
blob: 7490c90fb55de259a1023226a2784d7e8bc84317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/92891 */

int a, b;
char *foo (int) __attribute__((alloc_size(1)));

void
bar (void)
{
  char *e = foo (2);
  while (a)
    {
      if (b <= 0)
	continue;
      e[b] = 0;
    }
}