Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
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" }
}