summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/using3.C
blob: d2acf80099a49a9cf9fadd9837681b0ffce3d981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class A
{
public:
    typedef int T;
    int a;
};

class B : virtual private A
{
};

class C : virtual private A, public B
{
public:
    using A::a;
    using A::T;
};

C::T x;