aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr54321.c
blob: 13adc78d3459eacd950dcd7a37c694a48ef38f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR tree-optimization/54321 */
struct S { char s[0]; } *a;

void
foo (void)
{
  char *b = a->s;
  int c = 0;
  b[0] = 0;
  while (++c < 9)
    b[c] = 255;
}