diff --git a/test/intrinsics.jl b/test/intrinsics.jl index 0e8b2ec98fc23..a5f3308c68639 100644 --- a/test/intrinsics.jl +++ b/test/intrinsics.jl @@ -102,4 +102,7 @@ let f = Core.Intrinsics.ashr_int end # issue #29929 -@test unsafe_store!(Ptr{Nothing}(C_NULL), nothing) == Ptr{Nothing}(0) +@test unsafe_store!(Ptr{Nothing}(C_NULL), nothing) === Ptr{Nothing}(0) +@test unsafe_load(Ptr{Nothing}(0)) === nothing +struct GhostStruct end +@test unsafe_load(Ptr{GhostStruct}(rand(Int))) === GhostStruct()