summaryrefslogtreecommitdiff
path: root/t/pragma
diff options
context:
space:
mode:
authorWilson P. Snyder II <unknown@perl.org>1998-11-30 00:00:00 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1998-12-31 11:18:17 +0000
commit4f19785bce4da39a768aa6210f1f97ab4c0600dd (patch)
treed61c839a9780269b7b0766bad2487e8053caa5fd /t/pragma
parent142393a6492fce5c4bb6f282b1ba1d8da7c0064b (diff)
downloadperl-4f19785bce4da39a768aa6210f1f97ab4c0600dd.tar.gz
REV2: Binary number support
To: perl5-porters@perl.org Message-ID: <199811301543.KAA15689@vulcan.maker.com> p4raw-id: //depot/cfgperl@2546
Diffstat (limited to 't/pragma')
-rw-r--r--t/pragma/warn/util8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/pragma/warn/util b/t/pragma/warn/util
index 649a2929ce..b63f89e139 100644
--- a/t/pragma/warn/util
+++ b/t/pragma/warn/util
@@ -6,6 +6,8 @@
Illegal hex digit ignored
my $a = hex "0xv9" ;
+ Illegal binary digit ignored
+ my $a = oct "0b9" ;
__END__
# util.c
@@ -19,3 +21,9 @@ use warning 'unsafe' ;
*a = hex "0xv9" ;
EXPECT
Illegal hex digit ignored at - line 3.
+########
+# util.c
+use warning 'unsafe' ;
+*a = oct "0b9" ;
+EXPECT
+Illegal binary digit ignored at - line 3.