Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
init
/
ref3.C
blob: 776f2d0c5d225478d6fd36e4111a29b2f4cdaeb2 [
file
] [
log
] [
blame
]
struct
Base
{
};
struct
Derived
:
public
Base
{
};
struct
Choose
{
operator
Base
&();
operator
Derived
&();
};
void
f
()
{
Choose
c
;
Base
&
ref
=
c
;
}