using4.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Wed, 7 Oct 1998 21:22:16 +0000 (21:22 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Wed, 7 Oct 1998 21:22:16 +0000 (21:22 +0000)
* g++.old-deja/g++.other/using4.C: New test.  Test using
  declarations of methods from base classes.

From-SVN: r22903

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/using4.C [new file with mode: 0644]

index 78bddf1ab6ce71f81e6be814d943b8bb141b1b3d..b15599cd8138e3345ca91488287ad587bd4efb9e 100644 (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
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 (file)
index 0000000..218ffe2
--- /dev/null
@@ -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);
+}