diff --git a/t/run/todo.t b/t/run/todo.t index c9e1da97fc47..f3c19f8dbe2b 100644 --- a/t/run/todo.t +++ b/t/run/todo.t @@ -290,6 +290,12 @@ TODO: { is($?, 0, 'No assertion failure; GH 16522'); } +TODO: { + local $::TODO = 'GH 16665'; + my $results = fresh_perl('sub f {[1,2,3]}; print sort f()->@*', {}); + is($results, '123', 'function return value sorted before postfix dereference; GH 16665'); +} + TODO: { todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build; local $::TODO = 'GH 16863';