repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr59226.C
blob
cb0ebbe35f9fa642b6f3ef87d95cbdd670f17a36
1
// { dg-do compile }
2
struct A
3
{
4
virtual void foo() {}
5
};
6
7
struct B
8
{
9
virtual void foo() {}
10
};
11
12
struct C : virtual A {};
13
14
struct D : virtual A, B
15
{
16
virtual void foo() {}
17
};
18
19
struct E : C, D
20
{
21
virtual void foo() {}
22
};
23
24
void bar(A* p)
25
{
26
p->foo();
27
}