Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / using36.C
blob966c60b896147b8981203c8c2bec92989476ca4f
1 // PR c++/25994
2 // { dg-do run }
4 struct B1
6   void f (char) {}
7   void f (double) { __builtin_abort(); }
8 };
10 struct B2
12   void f (double) { __builtin_abort(); }
13   void f (int) {}
16 struct D : public B1, public B2
18   using B1::f;
19   using B2::f;
20   void g ()
21   {
22     f ('a');           // should call B1::f(char)
23     f (33);            // should call B2::f(int)
24   }
27 int main()
29   D d;
30   d.g();