Skip to content

Commit

Permalink
Revert "temp work-around for 32-bit inference failure (#29923)"
Browse files Browse the repository at this point in the history
This reverts commit 84c8654.
  • Loading branch information
StefanKarpinski committed Nov 15, 2018
1 parent 84c8654 commit bfee93a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions test/numbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2363,20 +2363,13 @@ end
let types = (Base.BitInteger_types..., BigInt, Bool)
for S in types
T = @inferred Base.promote_op(~, S)
# FIXME: temporary work-around for #29923
if !(Sys.WORD_SIZE == 32 && S === Int128)
@inferred ~one(S)
end
t = ~one(S)
t = @inferred ~one(S)
@test T === typeof(t)

for R in types
for op in (&, |, <<, >>, (>>>), %, ÷)
T = @inferred Base.promote_op(op, S, R)
# FIXME: temporary work-around for #29923
if !(Sys.WORD_SIZE == 32 && T === Int128)
@inferred op(one(S), one(R))
end
t = op(one(S), one(R))
t = @inferred op(one(S), one(R))
@test T === typeof(t)
end
end
Expand Down

0 comments on commit bfee93a

Please sign in to comment.