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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [expr/] [cond6.C] - Diff between revs 154 and 816

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

Rev 154 Rev 816
// { dg-do "run" }
// { dg-do "run" }
extern "C" void abort ();
extern "C" void abort ();
struct B {
struct B {
  B() {}
  B() {}
  B(const B& b) { abort (); }
  B(const B& b) { abort (); }
};
};
struct D : public B {
struct D : public B {
  D() {}
  D() {}
  D(const D& d) : B() {}
  D(const D& d) : B() {}
};
};
D d;
D d;
B b;
B b;
D f() {
D f() {
  return d;
  return d;
}
}
int main () {
int main () {
  b = (true ? f() : b);
  b = (true ? f() : b);
}
}
 
 

powered by: WebSVN 2.1.0

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