aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/using4.C
blob: 8a6162606c4a4aa60c1c36633663eef5c4598233 (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
// PR c++/26256
// { dg-do compile }

struct A
{
    typedef char type;
};

struct B
{
    typedef int type;
};

struct C : A, B
{
    using A::type;
    type f (type);
};

C::type C::f( type )
{
    type c = 'e';
    return c;
}