* g++.old-deja/g++.other/using4.C: New test. Test using
declarations of methods from base classes.
From-SVN: r22903
1998-10-08 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * g++.old-deja/g++.other/using4.C: New test. Test using
+ declarations of methods from base classes.
+
* g++.old-deja/g++.ns/extern1.C: New test. Extern declarations
within functions should introduce names into the innermost
enclosing namespace
--- /dev/null
+// Build don't link:
+
+// Based on a testcase by Martin Bachtold <martinb@coyotesystems.com>
+
+// excess errors test - XFAIL *-*-*
+
+struct foo {
+ void m();
+};
+
+struct bar : foo {
+ using foo::m;
+ void m(int);
+};
+
+void f() {
+ bar b;
+ b.m();
+ b.m(1);
+}