File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff 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\n oooo\n oooo\n oooo" , ' Hashref element reference in @_ disappeared; GH 13307' );
229+ }
230+
208231TODO: {
209232 local $: :TODO = " GH 16008" ;
210233 my $results = fresh_perl(<<~'EOF' , {} );
You can’t perform that action at this time.
0 commit comments