summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c/pass50-frag.c
blob: ac9ee090950e42ec432e8bcda48e731d98b6be0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdlib.h>

struct a
{
  int a1[5];
  union
  {
    int b1[5];
    struct
    {
      int c1;
      int c2;
    } b2[4];
  } a2[8];
};

int i1 = 5;
int i2 = 2;
int i3 = 6;
int i4 = 0;

int
main ()
{
  volatile struct a *k = calloc (1, sizeof (struct a));
  k->a2[i1].b1[i2] = k->a2[i3].b2[i4].c2;
  free ((void *) k);
  return 0;
}