summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-09-06 20:33:43 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-09-06 20:33:43 +0000
commit15041a678a73e91c0e4cece2b3fd5f83d5128900 (patch)
treecd9546462d8091d12ae56cc28e5157e3b7afb234 /t
parent1291a1920c36dc45039a0acbf53957ff30304657 (diff)
downloadperl-15041a678a73e91c0e4cece2b3fd5f83d5128900.tar.gz
Fix UV_SIZEOF to UVSIZE; change the overflow tests
so that they overflow also on 64-bit platforms. p4raw-id: //depot/cfgperl@4093
Diffstat (limited to 't')
-rw-r--r--t/pragma/warn/toke12
-rw-r--r--t/pragma/warn/util4
2 files changed, 8 insertions, 8 deletions
diff --git a/t/pragma/warn/toke b/t/pragma/warn/toke
index 182cc1728c..ee02efa813 100644
--- a/t/pragma/warn/toke
+++ b/t/pragma/warn/toke
@@ -588,23 +588,23 @@ Octal number > 037777777777 non-portable at - line 11.
use warnings 'overflow' ;
my $a = 0b011111111111111111111111111111110 ;
$a = 0b011111111111111111111111111111111 ;
- $a = 0b111111111111111111111111111111111 ;
+ $a = 0b10000000000000000000000000000000000000000000000000000000000000000 ;
$a = 0x0fffffffe ;
$a = 0x0ffffffff ;
- $a = 0x1ffffffff ;
+ $a = 0x10000000000000000 ;
$a = 0037777777776 ;
$a = 0037777777777 ;
- $a = 0047777777777 ;
+ $a = 002000000000000000000000;
no warnings 'overflow' ;
$a = 0b011111111111111111111111111111110 ;
$a = 0b011111111111111111111111111111111 ;
- $a = 0b111111111111111111111111111111111 ;
+ $a = 0b10000000000000000000000000000000000000000000000000000000000000000 ;
$a = 0x0fffffffe ;
$a = 0x0ffffffff ;
- $a = 0x1ffffffff ;
+ $a = 0x10000000000000000 ;
$a = 0037777777776 ;
$a = 0037777777777 ;
- $a = 0047777777777 ;
+ $a = 002000000000000000000000;
EXPECT
Integer overflow in binary number at - line 5.
Integer overflow in hexadecimal number at - line 8.
diff --git a/t/pragma/warn/util b/t/pragma/warn/util
index 6d82d133b8..6c9bc8c696 100644
--- a/t/pragma/warn/util
+++ b/t/pragma/warn/util
@@ -49,9 +49,9 @@ Illegal binary digit '9' ignored at - line 3.
########
# util.c
use warnings 'overflow' ;
-my $a = oct "0b111111111111111111111111111111111111111111" ;
+my $a = oct "0b11111111111111111111111111111111111111111111111111111111111111111";
no warnings 'overflow' ;
-$a = oct "0b111111111111111111111111111111111111111111" ;
+$a = oct "0b11111111111111111111111111111111111111111111111111111111111111111";
EXPECT
Integer overflow in binary number at - line 3.
########