Skip to content

Commit 7680971

Browse files
committed
TODO tests for two segfaults
As described in GH #15654; code reduction by Hugo, prod to write TODO tests from zb226. Remove superfluous whitespace
1 parent 4eadf9a commit 7680971

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

t/run/todo.t

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,19 @@ TODO: {
228228
is($results, "oooo\noooo\noooo\noooo", 'Hashref element reference in @_ disappeared; GH 13307');
229229
}
230230

231+
TODO: {
232+
local $::TODO = "GH 15654";
233+
my $results = fresh_perl(<<~'EOF', {});
234+
%: = *: = *:::::: = *x; *:::: = *::;
235+
EOF
236+
is($?, 0, 'perl exited normally; [GH 15654]');
237+
238+
$results = fresh_perl(<<~'EOF', {});
239+
%y = *y = *:::::: = *x; *:::: = *::;
240+
EOF
241+
is($?, 0, 'perl exited normally; [GH 15654]');
242+
}
243+
231244
TODO: {
232245
local $::TODO = "GH 16008";
233246
my $results = fresh_perl(<<~'EOF', {} );

0 commit comments

Comments
 (0)