Skip to content

Commit

Permalink
No segfaults in sub call with ternary
Browse files Browse the repository at this point in the history
Closes rakudo/rakudo#1645 R#1645
  • Loading branch information
zoffixznet committed Apr 7, 2018
1 parent d20508a commit 27f5112
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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 7;
plan 8;

subtest '.count-only/.bool-only for iterated content' => {
plan 12;
Expand Down Expand Up @@ -242,4 +242,9 @@ subtest 'block in string in parentheses in `for` statement mod' => {
is-deeply (foo 444), 'HERE: bar 44499', 'fourth run';
}

{ # https://github.com/rakudo/rakudo/issues/1645
sub f { 4 ?? 8 !! 15 }; f for ^10000;
pass 'no segfaults in sub call with ternary';
}

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit 27f5112

Please sign in to comment.