summaryrefslogtreecommitdiff
path: root/t/pragma
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-18 20:10:29 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-18 20:10:29 +0000
commitc7d6bfb246054926d9f90d7da2845febddfc90b7 (patch)
tree0dba862e90f987b044394f9dc279623a2a7be7e1 /t/pragma
parent151afd43bea82dd30ddad05d5473070608c1d3fb (diff)
downloadperl-c7d6bfb246054926d9f90d7da2845febddfc90b7.tar.gz
queued errors may not be displayed after the PL_error_count limit
p4raw-id: //depot/perl@5806
Diffstat (limited to 't/pragma')
-rw-r--r--t/pragma/strict-vars32
1 files changed, 32 insertions, 0 deletions
diff --git a/t/pragma/strict-vars b/t/pragma/strict-vars
index 954d1e5ab4..d0e82c4b1f 100644
--- a/t/pragma/strict-vars
+++ b/t/pragma/strict-vars
@@ -141,6 +141,38 @@ Compilation failed in require at - line 2.
BEGIN failed--compilation aborted at - line 2.
########
+--FILE-- abc.pm
+package Burp;
+use strict;
+$a = 1;$f = 1;$k = 1; # just to get beyond the limit...
+$b = 1;$g = 1;$l = 1;
+$c = 1;$h = 1;$m = 1;
+$d = 1;$i = 1;$n = 1;
+$e = 1;$j = 1;$o = 1;
+$p = 0b12;
+--FILE--
+use abc;
+EXPECT
+Global symbol "$f" requires explicit package name at abc.pm line 3.
+Global symbol "$k" requires explicit package name at abc.pm line 3.
+Global symbol "$g" requires explicit package name at abc.pm line 4.
+Global symbol "$l" requires explicit package name at abc.pm line 4.
+Global symbol "$c" requires explicit package name at abc.pm line 5.
+Global symbol "$h" requires explicit package name at abc.pm line 5.
+Global symbol "$m" requires explicit package name at abc.pm line 5.
+Global symbol "$d" requires explicit package name at abc.pm line 6.
+Global symbol "$i" requires explicit package name at abc.pm line 6.
+Global symbol "$n" requires explicit package name at abc.pm line 6.
+Global symbol "$e" requires explicit package name at abc.pm line 7.
+Global symbol "$j" requires explicit package name at abc.pm line 7.
+Global symbol "$o" requires explicit package name at abc.pm line 7.
+Global symbol "$p" requires explicit package name at abc.pm line 8.
+Illegal binary digit '2' at abc.pm line 8, at end of line
+abc.pm has too many errors.
+Compilation failed in require at - line 1.
+BEGIN failed--compilation aborted at - line 1.
+########
+
# Check scope of pragma with eval
no strict ;
eval {