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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [921112-1.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
union u {
2
  struct { int i1, i2; } t;
3
  double d;
4
} x[2], v;
5
 
6
f (x, v)
7
     union u *x, v;
8
{
9
  *++x = v;
10
}
11
 
12
main()
13
{
14
  x[1].t.i1 = x[1].t.i2 = 0;
15
  v.t.i1 = 1;
16
  v.t.i2 = 2;
17
  f (x, v);
18
  if (x[1].t.i1 != 1 || x[1].t.i2 != 2)
19
    abort ();
20
  exit (0);
21
}

powered by: WebSVN 2.1.0

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