using5.C: New test; using decl from base class should be usable as argument of member...
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 10 Oct 1998 07:38:29 +0000 (07:38 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 10 Oct 1998 07:38:29 +0000 (07:38 +0000)
* g++.old-deja/g++.other/using5.C: New test; using decl from base
  class should be usable as argument of member function
* g++.old-deja/g++.other/using6.C: New test; using decl from base
  class should be usable as return type of member function
* g++.old-deja/g++.other/using7.C: New test; using decl from base
  class should be usable as type of data member

From-SVN: r22970

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

index 1512987c72bf4456566052bcdf0f116f3ae81204..6fee7443a5e815758c006ef9b945c2c84ca46390 100644 (file)
@@ -1,5 +1,12 @@
 1998-10-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.other/using5.C: New test; using decl from base
+       class should be usable as argument of member function
+       * g++.old-deja/g++.other/using6.C: New test; using decl from base
+       class should be usable as return type of member function
+       * g++.old-deja/g++.other/using7.C: New test; using decl from base
+       class should be usable as type of data member
+
        * g++.old-deja/g++.ns/extern1.C: fix XFAIL mark
 
 Fri Oct  9 19:19:19 1998  Jeffrey A Law  (law@cygnus.com)
diff --git a/gcc/testsuite/g++.old-deja/g++.other/using5.C b/gcc/testsuite/g++.old-deja/g++.other/using5.C
new file mode 100644 (file)
index 0000000..df610b2
--- /dev/null
@@ -0,0 +1,15 @@
+// Build don't link:
+
+// Based on bug report by Klaus-Georg Adams
+// <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+// crash test - XFAIL *-*-*
+
+struct bar {
+  typedef bar t;
+};
+
+struct foo : bar {
+  using bar::t;
+  void baz(t pos);
+};
diff --git a/gcc/testsuite/g++.old-deja/g++.other/using6.C b/gcc/testsuite/g++.old-deja/g++.other/using6.C
new file mode 100644 (file)
index 0000000..2cdaf67
--- /dev/null
@@ -0,0 +1,13 @@
+// Build don't link:
+
+// Based on bug report by Klaus-Georg Adams
+// <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+struct bar {
+  typedef bar t;
+};
+
+struct foo : bar {
+  using bar::t;
+  t baz(); // syntax error?!? - XFAIL *-*-*
+};
diff --git a/gcc/testsuite/g++.old-deja/g++.other/using7.C b/gcc/testsuite/g++.old-deja/g++.other/using7.C
new file mode 100644 (file)
index 0000000..5c54f80
--- /dev/null
@@ -0,0 +1,13 @@
+// Build don't link:
+
+// Based on bug report by Klaus-Georg Adams
+// <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+struct bar {
+  typedef bar t;
+};
+
+struct foo : bar {
+  using bar::t;
+  t baz; // syntax error?!? - XFAIL *-*-*
+};