New test from PR #3242
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / using.C
blob2189d98f45b66301cd3c96c03ab2bb1be52c16e0
1 // { dg-do compile }
3 struct X { };
4 struct Y { };
5 struct Z { };
7 struct Base {
8   X f() { return X(); }
9   Y f() const { return Y(); }
12 struct Derived : Base {
13   using Base::f;
14   Z f(int) { return Z(); }
17 int main()
19   Derived d;
20   X x = d.f();