Sign in
android
/
toolchain
/
gcc
/
3f73d6ef904
/
.
/
gcc-4.6
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
covariant16.C
blob: de9307e89315664771d4f78a661b6a9115f7e49b [
file
] [
log
] [
blame
]
/* PR c++/28253 This used to ICE. */
/* { dg-do compile } */
struct
A
{
virtual
A
*
foo
();
};
struct
B
:
virtual
A
{
virtual
B
*
foo
();
/* { dg-error "overriding" } */
};
struct
C
:
B
{
virtual
C
&
foo
();
/* { dg-error "conflicting return type" } */
};