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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [scoping15.C] - Diff between revs 305 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// { dg-options "-ffriend-injection" }
// { dg-options "-ffriend-injection" }
// Bug: g++ ignores the :: qualification and dies trying to treat an integer
// Bug: g++ ignores the :: qualification and dies trying to treat an integer
// variable as a list of functions.
// variable as a list of functions.
class DComplex {
class DComplex {
public:
public:
  friend  double   imag(const DComplex& a);
  friend  double   imag(const DComplex& a);
};
};
class FComplex {
class FComplex {
public:
public:
  friend  float    imag(const FComplex& a);
  friend  float    imag(const FComplex& a);
};
};
void
void
scnrm2(FComplex cx[])
scnrm2(FComplex cx[])
{
{
  int imag;
  int imag;
  ::imag( cx[0] );
  ::imag( cx[0] );
}
}
 
 

powered by: WebSVN 2.1.0

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