using4.C: New test.

* g++.old-deja/g++.other/using4.C: New test.  Test using
 	declarations of methods from base classes.

From-SVN: r22903
This commit is contained in:
Alexandre Oliva 1998-10-07 21:22:16 +00:00 committed by Alexandre Oliva
parent 5e11b87c5f
commit 00b8ce6bac
2 changed files with 23 additions and 0 deletions

View File

@ -1,5 +1,8 @@
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

View File

@ -0,0 +1,20 @@
// 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);
}