Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Aug 7, 2024
1 parent 7b39898 commit 0dacc69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/ccall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,10 @@ end

# issue #52025
@test Base.unsafe_convert(Ptr{Ptr{Cchar}}, Base.cconvert(Ptr{Ptr{Cchar}}, map(pointer, ["ab"]))) isa Ptr{Ptr{Cchar}}

#issue #54725
for A in (reinterpret(UInt, [0]), reshape([0, 0], 1, 2))
@test pointer(A) == Base.unsafe_convert(Ptr{Cvoid}, A) == Base.unsafe_convert(Ptr{Int}, A)
end
# Cglobal with non-static symbols doesn't error
function cglobal_non_static1()
sym = (:global_var, libccalltest)
Expand Down

0 comments on commit 0dacc69

Please sign in to comment.