aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/layout.c
blob: c11da4e64a536b96e360c402abb7227bdef939ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-additional-options "-std=gnu89" } */

struct foo
{
  char a;
};

foo ()
{
  struct foo bar[3];
  bar[0].a = '0';
  bar[1].a = '1';
  bar[2].a = '2';
  foof (bar);
}