Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S06-macros/macros-d1.t] added Null PMC access test
discovered by samlh++
  • Loading branch information
Carl Masak committed Apr 10, 2012
1 parent a84fe9b commit 110d111
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S06-macros/macros-d1.t
@@ -1,7 +1,7 @@
use v6;

use Test;
plan 11;
plan 12;

# Just to avoid tedium, the macros in this file are
# named after Santa's reindeers.
Expand Down Expand Up @@ -112,3 +112,9 @@ plan 11;
macro id($param) { $param };
is id('x'), 'x', 'macro can return its param';
}

#?rakudo skip 'Null PMC access'
{
macro funny_nil { quasi { {;}() } }
is funny_nil(), Nil, 'Nil from an empty block turns into no code';
}

0 comments on commit 110d111

Please sign in to comment.