Skip to content

Commit 6a42a5b

Browse files
zb226khwilliamson
authored andcommitted
todo test for github issue #13307
better failure description amended test as suggested by tonycoz run the test non-TODO for PERL_RC_STACK and TODO for non-PERL_RC_STACK
1 parent 311160c commit 6a42a5b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

t/run/todo.t

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,29 @@ TODO: {
205205
"", { eval $switches }, "[GH 10194]");
206206
}
207207

208+
TODO: {
209+
my $is_rc_stack = "$Config{cc} $Config{ccflags} $Config{optimize}" =~ /-DPERL_RC_STACK\b/;
210+
local $::TODO = $is_rc_stack ? undef : "GH 13307";
211+
212+
my $results = fresh_perl(<<~'EOF', {});
213+
my $iter;
214+
my %llll;
215+
sub bbbb { }
216+
sub aaaa {
217+
\@_ if $iter & 1;
218+
bbbb($_[1]) if $iter & 2;
219+
delete $llll{p};
220+
print $_[0] // "undef", "\n";
221+
}
222+
for(0..3) {
223+
$iter = $_;
224+
%llll = (p => "oooo");
225+
aaaa($llll{p}, undef);
226+
}
227+
EOF
228+
is($results, "oooo\noooo\noooo\noooo", 'Hashref element reference in @_ disappeared; GH 13307');
229+
}
230+
208231
TODO: {
209232
local $::TODO = "GH 16008";
210233
my $results = fresh_perl(<<~'EOF', {} );

0 commit comments

Comments
 (0)