OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libmudflap/] [testsuite/] [libmudflap.c/] [pass50-frag.c] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 275 jeremybenn
#include <stdlib.h>
2
 
3
struct a
4
{
5
  int a1[5];
6
  union
7
  {
8
    int b1[5];
9
    struct
10
    {
11
      int c1;
12
      int c2;
13
    } b2[4];
14
  } a2[8];
15
};
16
 
17
int i1 = 5;
18
int i2 = 2;
19
int i3 = 6;
20
int i4 = 0;
21
 
22
int
23
main ()
24
{
25
  volatile struct a *k = calloc (1, sizeof (struct a));
26
  k->a2[i1].b1[i2] = k->a2[i3].b2[i4].c2;
27
  free ((void *) k);
28
  return 0;
29
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.