Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/ns1.C

raw
1 // { dg-do assemble }
2 // GROUPS passed old-abort
3 struct B
4 {
5 void f(char);
6 void g(char);
7 };
8
9 class C
10 {
11 int g();
12 };
13
14 class D2 : public B
15 {
16 using B::f; // ok: B is a base of D2
17 using C::g; // { dg-error "not a base type" }
18 };