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