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/] [cond2.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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 "" }
12
}

powered by: WebSVN 2.1.0

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