aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-12-05 22:39:22 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-12-05 22:39:22 +0000
commitad9874369458bcab82bd4913e0c194a73e7123a5 (patch)
tree3eb5b4aaa6ab786a5f36749c4896d3978bb94280
parent658269bda2c626a5a27708ea5c28ba0b74fb9248 (diff)
downloadgcc-ad9874369458bcab82bd4913e0c194a73e7123a5.zip
gcc-ad9874369458bcab82bd4913e0c194a73e7123a5.tar.gz
gcc-ad9874369458bcab82bd4913e0c194a73e7123a5.tar.bz2
* g++.old-deja/g++.eh/tmpl3.C: New test.
From-SVN: r24113
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/tmpl3.C11
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fa6e138..e4aea18 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,7 @@
1998-12-06 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * g++.old-deja/g++.eh/tmpl3.C: New test.
+
* g++.old-deja/g++.eh/tmpl2.C: New test.
1998-12-04 Alexandre Oliva <oliva@dcc.unicamp.br>
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/tmpl3.C b/gcc/testsuite/g++.old-deja/g++.eh/tmpl3.C
new file mode 100644
index 0000000..738e7d8
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.eh/tmpl3.C
@@ -0,0 +1,11 @@
+// Build don't link:
+
+// Posted by Trevor Taylor <ttaylor@powerup.com.au>
+
+template<class T> struct A {
+ void X() throw(T); // gets bogus error - previous decl - XFAIL *-*-*
+};
+
+template<class T>
+inline void A<T>::X()
+throw(T) { } // gets bogus error - different throws - XFAIL *-*-*