Skip to content

Commit f079596

Browse files
author
Geoffrey Broadwell
committed
Un-bitrot nqp/rc-man-or-boy-test
1 parent 655c508 commit f079596

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

nqp/rc-man-or-boy-test

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
try { nqp::getcomp('nqp').eval('pir::getinterp__P().recursion_limit(100000)') }
33

44
sub A ($k, $x1, $x2, $x3, $x4, $x5) {
5-
my $B := sub () { A(--$k, $B, $x1, $x2, $x3, $x4) };
5+
my $B; $B := sub () { A(--$k, $B, $x1, $x2, $x3, $x4) };
66
$k <= 0 ?? $x4() + $x5() !! $B();
77
}
88

9-
say(A(+@ARGS[1], sub(){1}, sub(){-1}, sub(){-1}, sub(){1}, sub(){0}));
9+
sub MAIN(*@ARGS) {
10+
say(A(+@ARGS[1], my sub(){1}, my sub(){-1}, my sub(){-1},
11+
my sub(){1}, my sub(){0}));
12+
}

0 commit comments

Comments
 (0)