There’s one example of calling a @cfunction
with an array in GitHub - GunnarFarneback/DynamicallyLoadedEmbedding.jl: Embed Julia with dynamical loading of libjulia at runtime..
Update: The relevant code is most easily located in the PR where it was added.