Skip to content

Commit 262e506

Browse files
committed
Add a ccall test from hook
Ensure hasmethod succeeds for ccall
1 parent 8f94a05 commit 262e506

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/hooks.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const JL = JuliaLowering
4545
@test isdefined(test_mod, :M)
4646
@test isdefined(test_mod.M, :x)
4747

48+
@test jeval("@ccall jl_value_ptr(nothing::Any)::Ptr{Cvoid}") isa Ptr{Cvoid}
49+
4850
# Tricky cases with symbols
4951
out = jeval("""module M2
5052
Base.@constprop :aggressive function f(x); x; end

0 commit comments

Comments
 (0)