cp-simplify.c (genericize_try_block): Do genericize catch blocks.
authorJason Merrill <jason@gcc.gnu.org>
Fri, 7 Feb 2003 18:14:56 +0000 (13:14 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 7 Feb 2003 18:14:56 +0000 (13:14 -0500)
        * cp-simplify.c (genericize_try_block): Do genericize catch blocks.

[[Split portion of a mixed commit.]]

From-SVN: r62528.2

gcc/testsuite/g++.dg/eh/loop2.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/eh/loop2.C b/gcc/testsuite/g++.dg/eh/loop2.C
new file mode 100644 (file)
index 0000000..1e85fa1
--- /dev/null
@@ -0,0 +1,11 @@
+// Test that breaking out of a handler works.
+// { dg-do run }
+
+int main ()
+{
+  while (1)
+    {
+      try { throw 1; }
+      catch (...) { break; }
+    }
+}