From d5525e93c0bb72bf997e5161ff758117d897a96a Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 7 Feb 2003 13:14:56 -0500 Subject: [PATCH] cp-simplify.c (genericize_try_block): Do genericize catch blocks. * 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/eh/loop2.C diff --git a/gcc/testsuite/g++.dg/eh/loop2.C b/gcc/testsuite/g++.dg/eh/loop2.C new file mode 100644 index 00000000000..1e85fa1af22 --- /dev/null +++ b/gcc/testsuite/g++.dg/eh/loop2.C @@ -0,0 +1,11 @@ +// Test that breaking out of a handler works. +// { dg-do run } + +int main () +{ + while (1) + { + try { throw 1; } + catch (...) { break; } + } +}