Skip to content

Commit

Permalink
Also cover use of callframe in a hot loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 19, 2016
1 parent 2df332c commit 4bd2bf1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S06-advanced/callframe.t
Expand Up @@ -2,7 +2,7 @@ use v6;
use Test;

#?niecza emit plan 12; #
plan 17;
plan 18;

# this test file contains tests for line numbers, among other things
# so it's extremely important not to randomly insert or delete lines.
Expand Down Expand Up @@ -65,4 +65,9 @@ lives-ok {
for ^300 { foo() }
}, 'No crash when using callframe(1).file many times in a loop';

lives-ok {
my $g;
for ^200 { next if $_ < 199; $g = callframe.gist }
}, 'No crash when using callframe.gist in a hot loop';

# vim: ft=perl6

0 comments on commit 4bd2bf1

Please sign in to comment.