Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #119749
  • Loading branch information
usev6 committed Oct 22, 2014
1 parent 82d502c commit 489ebb2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S04-phasers/begin.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 10;
plan 11;

# the boundary between run time and compile time is hard to implement right.
# Some of those tests might look trivial, but nearly all of them are based
Expand Down Expand Up @@ -68,3 +68,10 @@ plan 10;
{
is (BEGIN { try 42; } ), 42, 'Can use try at BEGIN time';
}

# RT #119749
#?rakudo.parrot skip 'RT #119749'
{
lives_ok { enum A (a=>3); BEGIN for A.enums { } },
'no Null PMC access when looping over SomeEnum.enums in blockless BEGIN';
}

0 comments on commit 489ebb2

Please sign in to comment.