Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #109740, big-ish binary bit ops
  • Loading branch information
moritz committed Feb 8, 2012
1 parent 59f3f35 commit 45d427d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S03-operators/bit.t
Expand Up @@ -4,7 +4,7 @@ use Test;

# Mostly copied from Perl 5.8.4 s t/op/bop.t

plan 26;
plan 27;

# test the bit operators '&', '|', '^', '+<', and '+>'

Expand Down Expand Up @@ -69,6 +69,12 @@ plan 26;
is( 2 ** 5 +> 2, (2 ** 5) +> 2, 'RT 77232 precedence of +>' );
}

# RT #109740
{
my ($x, $y) = (2**30, 1);
is +^$x +& $y, 1, 'large-ish bit ops';
}


# signed vs. unsigned
#ok((+^0 +> 0 && do { use integer; ~0 } == -1));
Expand Down

0 comments on commit 45d427d

Please sign in to comment.