summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb52.C
blob: 4607c1c2332f4a71ac0314c891f81c9252a96e3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// { dg-do assemble  }
class base {
protected:
    virtual void f();
};

class d1 : public virtual base {
protected:
    void f();
};

void d1::f()
{
    base::f();
}

class dd1 : public virtual d1 {
protected:
     void f();
};

void dd1::f()
{
    d1::f();
    base::f();
}

class d1_and_base : public virtual d1, public virtual base {
protected:
     void f();
};

void d1_and_base::f()
{
    d1::f();
    base::f();
}