Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cond2.C
blob: 93b166330c4e21b6b59817223d3897c00f4c76ee [
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 "15:conditional expression" }
}