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/] [gcc.c-torture/] [compile/] [pr42196-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
union U
2
{
3
  double d;
4
  __complex__ int c;
5
};
6
 
7
double gd;
8
extern double bar (union U);
9
 
10
double foo (int b, double d, int c1, int c2)
11
{
12
  union U u;
13
  double r;
14
 
15
  if (b)
16
    {
17
      u.d = d;
18
      r = u.d;
19
    }
20
  else
21
    {
22
      __real__ u.c = c1;
23
      __imag__ u.c = c2;
24
      r = bar (u);
25
    }
26
 
27
  return r;
28
}

powered by: WebSVN 2.1.0

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