summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20050520-1.c
blob: 9e2f6c8c74bffbea05fa0111ee1c019af6dd4aca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct s { int x[4]; };
struct s gs;

void
bar (void)
{
  struct s *s;
  int i;

  s = &gs;
  for (i = 0; i < 4; i++)
    ((char*) (&s->x[i]))[0] = 0;
}