mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 03:49:03 +08:00
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
This commit is contained in:
parent
c58391af7b
commit
d5525e93c0
11
gcc/testsuite/g++.dg/eh/loop2.C
Normal file
11
gcc/testsuite/g++.dg/eh/loop2.C
Normal file
@ -0,0 +1,11 @@
|
||||
// Test that breaking out of a handler works.
|
||||
// { dg-do run }
|
||||
|
||||
int main ()
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
try { throw 1; }
|
||||
catch (...) { break; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user