1#define NULL 0
2
3struct stuff
4{
5    int a;
6    int b;
7    int c;
8    int d;
9    int e;
10    char *f;
11    int g;
12};
13
14void __attribute__ ((noinline))
15bar (struct stuff *x)
16{
17  if (x->g != 2)
18    __builtin_abort ();
19}
20
21int
22main (int argc, char** argv)
23{
24  struct stuff x = {0, 0, 0, 0, 0, NULL, 0};
25  x.a = 100;
26  x.d = 100;
27  x.g = 2;
28  /* Struct should now look like {100, 0, 0, 100, 0, 0, 0, 2}.  */
29  bar (&x);
30  return 0;
31}
32