diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2003-02-07 13:14:56 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-02-07 13:14:56 -0500 |
commit | d5525e93c0bb72bf997e5161ff758117d897a96a (patch) | |
tree | 7d27ba4ba73bd974092f591ca1547f8723e9bd0f | |
parent | c58391af7bac04a3e88cd2829649635f1b6126aa (diff) | |
download | gcc-d5525e93c0bb72bf997e5161ff758117d897a96a.zip gcc-d5525e93c0bb72bf997e5161ff758117d897a96a.tar.gz gcc-d5525e93c0bb72bf997e5161ff758117d897a96a.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/g++.dg/eh/loop2.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/eh/loop2.C b/gcc/testsuite/g++.dg/eh/loop2.C new file mode 100644 index 0000000..1e85fa1 --- /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; } + } +} |