Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
covariant23.C
blob: b27be15ef4581951d880d1e655524bd9f74833cf [
file
] [
log
] [
blame
]
// PR c++/99664
// { dg-do compile { target c++11 } }
struct
Res
{
};
struct
A
{
virtual
Res
&&
f
();
virtual
Res
&
g
();
};
struct
B
:
A
{
Res
&
f
()
override
;
// { dg-error "return type" }
Res
&&
g
()
override
;
// { dg-error "return type" }
};