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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [expr/] [cond2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
struct Term { };
2
struct Boolean : Term {
3
  explicit Boolean(bool);
4
};
5
struct IsZero : Term {
6
  Term *eval();
7
};
8
Term*
9
IsZero::eval()
10
{
11
  return true ? new Boolean(false) : this; // { dg-error "conditional expression" }
12
}

powered by: WebSVN 2.1.0

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