From 00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 7 Oct 1998 21:22:16 +0000 Subject: using4.C: New test. * g++.old-deja/g++.other/using4.C: New test. Test using declarations of methods from base classes. From-SVN: r22903 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.old-deja/g++.other/using4.C | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/using4.C (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 78bddf1..b15599c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 1998-10-08 Alexandre Oliva + * 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 diff --git a/gcc/testsuite/g++.old-deja/g++.other/using4.C b/gcc/testsuite/g++.old-deja/g++.other/using4.C new file mode 100644 index 0000000..218ffe2 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/using4.C @@ -0,0 +1,20 @@ +// Build don't link: + +// Based on a testcase by Martin Bachtold + +// 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); +} -- cgit v1.1