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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [complex5.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR 24365
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
typedef __complex__ double cdouble;
6
inline cdouble to_complex(double r) {
7
  cdouble z;
8
  __real__ z = r;
9
  return z;
10
}
11
cdouble elt_zero() {
12
  cdouble a = to_complex(0.0);
13
  a+=1.0;
14
  return a;
15
}
16
 

powered by: WebSVN 2.1.0

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