Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
init
/
ref22.C
blob: 93210ef1edfd4e0798053df1c3a4e6ebc74e09c9 [
file
] [
log
] [
blame
]
// PR c++/57610
// { dg-do run }
extern
"C"
void
abort
();
struct
A
{
A
()
{
}
A
(
const
A
&)
{
abort
();
}
};
struct
B
:
A
{
};
struct
X
{
operator
B
()
{
return
B
();
}
};
int
main
()
{
X x
;
const
A
&
r
=
x
;
}