diff options
author | Father Chrysostomos <sprout@cpan.org> | 2017-12-06 13:55:26 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2017-12-10 10:33:24 -0800 |
commit | e7afb05e35570e271ae017d47b64dd5aad3e2009 (patch) | |
tree | 165bbdde29ec9b745f4f7ab4394755192d622a92 /t/lib | |
parent | b537774295099f6b543a9e2b7375f72593328389 (diff) | |
download | perl-e7afb05e35570e271ae017d47b64dd5aad3e2009.tar.gz |
Explicitly test goto-into-foreach
It is already tested in t/op/goto.t, but only as part of an existing
test to see which of multiple identical labels gets chosen.
Diffstat (limited to 't/lib')
-rw-r--r-- | t/lib/croak/pp_ctl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/lib/croak/pp_ctl b/t/lib/croak/pp_ctl index ec664138e0..42319ff2e8 100644 --- a/t/lib/croak/pp_ctl +++ b/t/lib/croak/pp_ctl @@ -1,4 +1,11 @@ __END__ +# NAME goto into foreach +no warnings 'deprecated'; +goto f; +foreach(1){f:} +EXPECT +Can't "goto" into the middle of a foreach loop at - line 3. +######## # NAME dump with computed label no warnings 'deprecated'; my $label = "foo"; |