Skip to content

Commit

Permalink
Add test for PR #17803
Browse files Browse the repository at this point in the history
The PR fixes jl_static_show for bitstypes

(cherry picked from commit 718391d)
ref #17961

Change test to Int128(-1)

(cherry picked from commit 462a1eb)
  • Loading branch information
ranjanan authored and tkelman committed Aug 21, 2016
1 parent 458c832 commit 55a5b12
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/spawn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -428,3 +428,11 @@ if is_unix()
end
end
end

# Test for PR 17803
let p=Pipe()
Base.link_pipe(p; julia_only_read=true, julia_only_write=true)
ccall(:jl_static_show, Void, (Ptr{Void}, Any), p.in, Int128(-1))
@async close(p.in)
@test readstring(p.out) == "Int128(0xffffffffffffffffffffffffffffffff)"
end

0 comments on commit 55a5b12

Please sign in to comment.