aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lookup/using28.C
blob: ae4067a23ea011e153aa16bd9efe26d71685a312 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/26256
// { dg-do compile }

struct A { int f; };
struct B { int f; };
struct C : A, B { using B::f; };

struct D : C
{
    void g() { f = 1; }
};