From 55a5b12f0dcac086b6fafa6d6273a0c45ffa483f Mon Sep 17 00:00:00 2001 From: ranjanan Date: Thu, 11 Aug 2016 12:11:05 +0530 Subject: [PATCH] Add test for PR #17803 The PR fixes jl_static_show for bitstypes (cherry picked from commit 718391db9ec76d4a12c128d2ae6165ad90a1fb8c) ref #17961 Change test to Int128(-1) (cherry picked from commit 462a1ebd9348ba46f7983b6e0b17a8cfcd9e3e4d) --- test/spawn.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/spawn.jl b/test/spawn.jl index 21ce279b5eb3e..5379300b83ed4 100644 --- a/test/spawn.jl +++ b/test/spawn.jl @@ -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