diff options
author | Robin Houston <robin@cpan.org> | 2001-07-10 14:33:40 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-07-10 13:45:12 +0000 |
commit | f2c0fa378e55ca42d398c29e02f5dc2fd742d1dc (patch) | |
tree | f730cee0155cdee2df432a1555b03eae220f1220 /t | |
parent | 3c01495985c7c4b8f1b95ec88b49209869fdb517 (diff) | |
download | perl-f2c0fa378e55ca42d398c29e02f5dc2fd742d1dc.tar.gz |
deprecate package with no arguments
Message-ID: <20010710133340.A13452@robin.kitsite.com>
p4raw-id: //depot/perl@11256
Diffstat (limited to 't')
-rw-r--r-- | t/lib/warnings/op | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/lib/warnings/op b/t/lib/warnings/op index 0079146ad3..d3a2d548fe 100644 --- a/t/lib/warnings/op +++ b/t/lib/warnings/op @@ -108,6 +108,9 @@ mkdir "foo", 777; umask 222; + Use of "package" with no arguments is deprecated + package; + Mandatory Warnings ------------------ Prototype mismatch: [cv_ckproto] @@ -958,3 +961,11 @@ mkdir "", 777; EXPECT Non-octal literal mode (777) specified at - line 3. (Did you mean 0777 instead?) +######## +# op.c +use warnings 'deprecated' ; +package; +no warnings 'deprecated' ; +package; +EXPECT +Use of "package" with no arguments is deprecated at - line 3. |