Skip to content

Commit

Permalink
Add tests for a weird segv issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDaniel committed Jan 4, 2019
1 parent 73eb90d commit 3bc17b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration/weird-errors.t
Expand Up @@ -3,7 +3,7 @@ use Test;
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
use Test::Util;

plan 32;
plan 33;

# this used to segfault in rakudo
is_run(
Expand Down Expand Up @@ -248,3 +248,7 @@ is (^1000 .grep: -> $n {([+] ^$n .grep: -> $m {$m and $n %% $m}) == $n }), (0, 6
# https://irclog.perlgeek.de/perl6/2017-04-18#i_14443061
is_run class Foo {}; $ = new Foo:, {:out(''), :err(''), :0status },
'new Foo: calling form does not produce unwanted output';

# R#2486
is_run sub f1 { hash a=>1 }; f1 for ^100000, {:out(''), :err(''), :0status },
'no segfault when using `hash` in a function';

0 comments on commit 3bc17b6

Please sign in to comment.