Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
();
}