From 37250720d910ba1029fbbf775ac1e634dbe89b05 Mon Sep 17 00:00:00 2001 From: Nathan Daly Date: Thu, 21 Mar 2019 21:51:02 -0400 Subject: [PATCH] Add test for Issue #29929: `unsafe_store!(::Ptr{Nothing}, ::Nothing)` --- test/intrinsics.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/intrinsics.jl b/test/intrinsics.jl index 993efc63a4c03..0e8b2ec98fc23 100644 --- a/test/intrinsics.jl +++ b/test/intrinsics.jl @@ -100,3 +100,6 @@ let f = Core.Intrinsics.ashr_int @test f(Int32(-1), -10) == -1 @test f(Int32(2), -1) == 0 end + +# issue #29929 +@test unsafe_store!(Ptr{Nothing}(C_NULL), nothing) == Ptr{Nothing}(0)