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:
parent
5e11b87c5f
commit
00b8ce6bac
@ -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
|
||||
|
20
gcc/testsuite/g++.old-deja/g++.other/using4.C
Normal file
20
gcc/testsuite/g++.old-deja/g++.other/using4.C
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user