summaryrefslogtreecommitdiff
path: root/t/RT42725_deparse.t
diff options
context:
space:
mode:
Diffstat (limited to 't/RT42725_deparse.t')
-rw-r--r--t/RT42725_deparse.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/RT42725_deparse.t b/t/RT42725_deparse.t
new file mode 100644
index 0000000..a10ce82
--- /dev/null
+++ b/t/RT42725_deparse.t
@@ -0,0 +1,14 @@
+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/\@\_/;