2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / expr / cond2.C
blobd9c2e7031f6a4965fd6cf46793611ee5c7d87964
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()
11   return true ? new Boolean(false) : this; // { dg-error "" }