aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-10-07 21:22:16 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-10-07 21:22:16 +0000
commit00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb (patch)
tree82ed930fbf8909a35e8038a12c5c6b22bd79d3ea
parent5e11b87c5f1203a21091ecc7b9b364af7583851b (diff)
downloadgcc-00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb.zip
gcc-00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb.tar.gz
gcc-00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb.tar.bz2
using4.C: New test.
* g++.old-deja/g++.other/using4.C: New test. Test using declarations of methods from base classes. From-SVN: r22903
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/using4.C20
2 files changed, 23 insertions, 0 deletions
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 <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
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 <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);
+}