Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr58585.C
blob: 69fcf04ddc1b4bdde89ccec6fe86821f605c8c1f [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-fpic" { target fpic } }
struct
A
{
virtual
void
foo
()
{}
void
bar
();
};
void
A
::
bar
()
{
foo
();
}
struct
B
:
virtual
A
{
virtual
void
foo
()
{}
char
c
;
};
struct
C
:
virtual
B
{
C
();
};
C
::
C
()
{
bar
();
}