OSDN Git Service

* cp-simplify.c (genericize_try_block): Do genericize catch blocks.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Feb 2003 18:14:56 +0000 (18:14 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Feb 2003 18:14:56 +0000 (18:14 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62528 138bc75d-0d04-0410-961f-82ee72b054a4

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; }
+    }
+}