Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
ref7.C
blob: 99347cb1c27a758740bdbf5eda470fcaf77bea6a [
file
] [
log
] [
blame
]
// PR c++/91849
struct
A
{
operator
float
();
};
void
g
()
{
float
f
=
1.f
;
int
&
r
=
f
;
// { dg-error "float" }
int
&
r2
=
A
();
// { dg-error "float" }
}
void
g2
()
{
int
&
r
=
1.f
;
// { dg-error "float" }
}