summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-10 07:38:29 +0000
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-10 07:38:29 +0000
commitcd6c139afd4b9cce8bf232fd84c6e1d1ac929a11 (patch)
tree960d43006a3117ff856395863e60ff2fa5b55062
parentdbdda0667c7b03caa71995f2a7869ce99ea346e3 (diff)
downloadgcc-cd6c139afd4b9cce8bf232fd84c6e1d1ac929a11.tar.gz
* 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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22970 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/using5.C15
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/using6.C13
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/using7.C13
4 files changed, 48 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1512987c72b..6fee7443a5e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 00000000000..df610b21f67
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/using5.C
@@ -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
index 00000000000..2cdaf670215
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/using6.C
@@ -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
index 00000000000..5c54f80b9a1
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/using7.C
@@ -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 *-*-*
+};