Skip to content

Commit

Permalink
Cover Illegal Instruction crash
Browse files Browse the repository at this point in the history
Covers M#838 MoarVM/MoarVM#838
  • Loading branch information
zoffixznet committed Apr 8, 2018
1 parent f5246f8 commit bf28c77
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion MISC/bug-coverage.t
Expand Up @@ -6,7 +6,7 @@ use Test::Util;
# This file is for random bugs that don't really fit well in other places.
# Feel free to move the tests to more appropriate places.

plan 10;
plan 11;

subtest '.count-only/.bool-only for iterated content' => {
plan 12;
Expand Down Expand Up @@ -285,4 +285,10 @@ subtest '$_ and with/andthen/for combinations are not buggy' => {
'andthen (with -> ... { $_ })';
}

# https://github.com/MoarVM/MoarVM/issues/838
is_run
my @x = do for ^20 { [do for ^5 { ("a".."z").roll(3).join }] }
print @x.elems
, {:out<20>, :err(''), :0status}, 'no "Illegal Instruction" crashes';

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit bf28c77

Please sign in to comment.