repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr58585.C
blob
69fcf04ddc1b4bdde89ccec6fe86821f605c8c1f
1
// { dg-do compile }
2
// { dg-options "-fpic" { target fpic } }
3
struct A
4
{
5
virtual void foo() {}
6
void bar();
7
};
8
void A::bar() { foo(); }
9
10
struct B : virtual A
11
{
12
virtual void foo() {}
13
char c;
14
};
15
16
struct C : virtual B
17
{
18
C();
19
};
20
C::C() { bar(); }