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++.dg/] [init/] [array3.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// PR c++/6331
// PR c++/6331
// Bug: we were generating a badly cv-qualified ARRAY_TYPE in the
// Bug: we were generating a badly cv-qualified ARRAY_TYPE in the
// synthesized copy constructor for A, which then became the canonical
// synthesized copy constructor for A, which then became the canonical
// version, confusing later uses.
// version, confusing later uses.
struct A {
struct A {
  virtual ~A();
  virtual ~A();
  const float* f();
  const float* f();
  float fa[3];
  float fa[3];
};
};
struct B {
struct B {
  B(const A& ai) : a (ai) {}
  B(const A& ai) : a (ai) {}
  A a;
  A a;
};
};
void g (const float pos[3]);
void g (const float pos[3]);
extern A& a;
extern A& a;
void h()
void h()
{
{
  g (a.f());
  g (a.f());
}
}
 
 

powered by: WebSVN 2.1.0

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