Core issues 2273 and 2277
[official-gcc.git] / gcc / testsuite / g++.dg / overload / using5.C
blobad17c78a561e41f15507086d803b1e6c99c660bd
1 // Core issues 2273, 2277
2 // { dg-do compile { target c++11 } }
4 struct A
6   A(int, int = 0);
7   static void f(int = 0);
8 };
10 struct B: A
12   using A::A;
13   B(int);
15   using A::f;
16   static void f();
19 struct C: B {
20   using B::B;
21   using B::f;
23   
24 int main()
26   C c (42);
27   c.f();