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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb52.C
blob
4607c1c2332f4a71ac0314c891f81c9252a96e3f
1
// { dg-do assemble }
2
class base {
3
protected:
4
virtual void f();
5
};
6
7
class d1 : public virtual base {
8
protected:
9
void f();
10
};
11
12
void d1::f()
13
{
14
base::f();
15
}
16
17
class dd1 : public virtual d1 {
18
protected:
19
void f();
20
};
21
22
void dd1::f()
23
{
24
d1::f();
25
base::f();
26
}
27
28
class d1_and_base : public virtual d1, public virtual base {
29
protected:
30
void f();
31
};
32
33
void d1_and_base::f()
34
{
35
d1::f();
36
base::f();
37
}