2 // Test of class-scope using-declaration for functions.
4 #define assert(COND) if (!(COND)) return 1
7 int f(int) { return 1; }
8 int f(char) { return 2; }
12 int f(double) { return 3; }
15 struct C : public A, public B {
18 int f(char) { return 4; }
19 int f(C) { return 5; }
27 assert (c.f('a') == 4);
28 assert (c.f(2.0) == 3);