diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-10-13 13:44:50 +0100 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2009-10-16 12:30:14 -0400 |
commit | f3365a56c42f2f31eed84ad55632f9786ee09044 (patch) | |
tree | 6aec3591d4e3680e9cd20aacb3205db6047ae052 /t/op/lex.t | |
parent | f560054f038f9369201fb083944780fa1a0ad949 (diff) | |
download | perl-f3365a56c42f2f31eed84ad55632f9786ee09044.tar.gz |
Move the test for the deprecated feature <<; out of t/base/lext.t
Tests in base can't utilise pragmata, specifically no warnings 'deprecated';
Diffstat (limited to 't/op/lex.t')
-rw-r--r-- | t/op/lex.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/t/op/lex.t b/t/op/lex.t new file mode 100644 index 0000000000..3f00248ae5 --- /dev/null +++ b/t/op/lex.t @@ -0,0 +1,22 @@ +#!perl -w +use strict; + +require './test.pl'; + +plan(tests => 2); + +{ + no warnings 'deprecated'; + print <<; # Yow! +ok 1 + + # previous line intentionally left blank. + + my $yow = "ok 2"; + print <<; # Yow! +$yow + + # previous line intentionally left blank. +} + +curr_test(3); |