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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [anon-union.C] - Blame information for rev 316

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
// { dg-options -O2 }
3
 
4
int foo ();
5
double bar (void)
6
{
7
  union
8
  {
9
    char a[8];
10
    double b;
11
  };
12
 
13
  a[0] = foo ();
14
  a[1] = foo ();
15
  a[2] = foo ();
16
  a[3] = foo ();
17
  a[4] = foo ();
18
  a[5] = foo ();
19
  a[6] = foo ();
20
  a[7] = foo ();
21
  return b;
22
}

powered by: WebSVN 2.1.0

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