blob: d9c2e7031f6a4965fd6cf46793611ee5c7d87964 [file] [log] [blame]
struct Term { };
struct Boolean : Term {
explicit Boolean(bool);
};
struct IsZero : Term {
Term *eval();
};
Term*
IsZero::eval()
{
return true ? new Boolean(false) : this; // { dg-error "" }
}