Skip to content

Commit

Permalink
add test case from issue #26607, cfunction with no args
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Apr 17, 2018
1 parent ca7e837 commit 0ef043c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/ccall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1424,3 +1424,12 @@ macro cglobal26297(sym)
end
cglobal26297() = @cglobal26297(:global_var)
@test cglobal26297() != C_NULL

# issue #26607
noop_func_26607 = () -> nothing
function callthis_26607(args)
@cfunction(noop_func_26607, Cvoid, ())
return nothing
end
@test callthis_26607(Int64(0)) === nothing
@test callthis_26607(Int32(0)) === nothing

0 comments on commit 0ef043c

Please sign in to comment.