Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for RT #124191.
  • Loading branch information
jnthn committed Jun 9, 2015
1 parent 60dd9f8 commit 3b3af27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S04-exception-handlers/catch.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 29;
plan 30;

=begin desc
Expand Down Expand Up @@ -251,4 +251,8 @@ eval-dies-ok 'try { CATCH { ~$! }; die }', "doesn't segfault";
}, 'Two invocations of a die()ing routine should still hit the CATCH handler';
}

# RT #124191
lives-ok { for ^1000 { die Exception.new; CATCH { default {} } } },
'Hot-path optimization does not break exception handling';

# vim: ft=perl6

0 comments on commit 3b3af27

Please sign in to comment.