Sign in
gnu
/
gcc
/
19220ca6aa79921cc431e41f25986e16410c7a6a
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cond2.C
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 "" }
}