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
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr59775.C
blob
10c497587e1d9de0ddf37c63c39ef0bed03430bd
1
// { dg-do compile }
2
struct A
3
{
4
virtual void foo () = 0;
5
void bar () { foo (); }
6
bool a;
7
};
8
struct B : public virtual A
9
{
10
virtual void foo ();
11
};
12
struct C : public B
13
{
14
C ();
15
};
16
void
17
baz ()
18
{
19
C c;
20
c.bar ();
21
}