* g++.old-deja/g++.eh/tmpl3.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 5 Dec 1998 22:39:22 +0000 (22:39 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 5 Dec 1998 22:39:22 +0000 (22:39 +0000)
From-SVN: r24113

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

index fa6e1384793f6bc91f650cf32ef68a501d21da91..e4aea189bbe648d85d90031fb0dd741a8baad076 100644 (file)
@@ -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 (file)
index 0000000..738e7d8
--- /dev/null
@@ -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 *-*-*