new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 26 Aug 1999 02:25:45 +0000 (22:25 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 26 Aug 1999 02:25:45 +0000 (22:25 -0400)
From-SVN: r28887

gcc/testsuite/g++.old-deja/g++.pt/fntry1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/fntry1.C b/gcc/testsuite/g++.old-deja/g++.pt/fntry1.C
new file mode 100644 (file)
index 0000000..17075c5
--- /dev/null
@@ -0,0 +1,9 @@
+// Bug: g++ silently ignores function-try-blocks in templates.
+// Submitted by Jason Merrill <jason@cygnus.com>
+
+template <class T> void f (T) try { throw 1; } catch (...) { }
+
+int main ()
+{
+  f (1);
+}