Test for the issue described in RT#42725.
--- /dev/null
+use strict;
+use warnings;
+use Test::More tests => 2;
+
+use Sub::Name;
+
+use B::Deparse;
+
+my $source = eval {
+ B::Deparse->new->coderef2text(subname foo => sub{ @_ });
+};
+
+ok !$@;
+
+like $source, qr/\@\_/;