diff options
author | Jesse Vincent <jesse@bestpractical.com> | 2011-08-15 22:20:53 +0300 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2011-08-15 22:20:53 +0300 |
commit | d0580c073780ff3a1d0eb8a91441553a8bc6dee9 (patch) | |
tree | 65ed891370131333b2e61cb0c7cb464086df900f /t/lib/strict | |
parent | d6655a35db9c09cc4a4eeae16b9ec49c7881b1ab (diff) | |
parent | 5840c18f54d64eedd62c14cfd8d5afafb86c61bd (diff) | |
download | perl-d0580c073780ff3a1d0eb8a91441553a8bc6dee9.tar.gz |
Merge branch 'blead' of ssh://perl5.git.perl.org/perl into blead
* 'blead' of ssh://perl5.git.perl.org/perl: (198 commits)
CORE.pod: fix nit grammar
podcheck.t pod grammar fix
Make lock(&foo) syntax nominally lock the subroutine
Forgot one in d677d0fca41325ba7203de00652fdeb43659754a.
Write some missing version strings in configure.com
Correct some format strings in configure.com.
Improve comments about op_private bits. And move the non op specific flags to the top.
get authors.t passing again
Update AUTHORS file and convert from Latin-1 to UTF-8
perldiag.pod on defined %hash
perldelta for &CORE::foo
Update core_prototype’s docs
Move pp_-specific code out of core_prototype
Change core_prototype to take a keyword num
Add tests for precedence of CORE:: subs
Add inlinable &CORE::functions
Make core_prototype provide the op number as well
Make sure the CORE package is always called CORE
Remove select’s prototype
B::Terse and B::Xref were missing some documentation.
...
Diffstat (limited to 't/lib/strict')
-rw-r--r-- | t/lib/strict/subs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/lib/strict/subs b/t/lib/strict/subs index 87311f8a16..84bf874b25 100644 --- a/t/lib/strict/subs +++ b/t/lib/strict/subs @@ -432,3 +432,13 @@ ret foo: ret bar +######## +# infinite loop breaks some strict checking +use strict 'subs'; +sub foo { + 1 while 1; + kill FOO, 1; +} +EXPECT +Bareword "FOO" not allowed while "strict subs" in use at - line 5. +Execution of - aborted due to compilation errors. |