From: Jason Merrill Date: Fri, 7 Feb 2003 18:14:56 +0000 (-0500) Subject: cp-simplify.c (genericize_try_block): Do genericize catch blocks. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5525e93c0bb72bf997e5161ff758117d897a96a;p=gcc.git 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 --- 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; } + } +}