repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cond2.C
blob
93b166330c4e21b6b59817223d3897c00f4c76ee
1
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 "15:conditional expression" }
12
}