This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test ‘Missing name in "my sub"’
authorFather Chrysostomos <sprout@cpan.org>
Sun, 1 Jul 2012 00:17:39 +0000 (17:17 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 6 Jul 2012 01:14:03 +0000 (18:14 -0700)
MANIFEST
t/lib/croak/toke [new file with mode: 0644]

index d35efd9..c34be02 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -5034,6 +5034,7 @@ t/lib/croak/mg                    Test croak calls from mg.c
 t/lib/croak/op                 Test croak calls from op.c
 t/lib/croak/pp_ctl             Test croak calls from pp_ctl.c
 t/lib/croak.t                  Test calls to Perl_croak() in the C source.
+t/lib/croak/toke               Test croak calls from toke.c
 t/lib/cygwin.t                 Builtin cygwin function tests
 t/lib/dbmt_common.pl           Common functionality for ?DBM_File tests
 t/lib/deprecate/Deprecated.pm  Deprecated module to test deprecate.pm
diff --git a/t/lib/croak/toke b/t/lib/croak/toke
new file mode 100644 (file)
index 0000000..130659a
--- /dev/null
@@ -0,0 +1,5 @@
+__END__
+# NAME Missing name in "my sub"
+my sub;
+EXPECT
+Missing name in "my sub" at - line 1.