Skip to content

Commit

Permalink
Test FromInvokeLatest
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Feb 17, 2021
1 parent ba50ddf commit 87dee94
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/snoopi_deep.jl
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,15 @@ end
SnoopCompile.show_suggest(io, cats, nothing, nothing)
@test occursin(r"invoked callee.*may fail to precompile", String(take!(io)))

# FromInvokeLatest
@eval module M
f(::Int) = 1
g(x) = Base.invokelatest(f, x)
end
cats = categories(@snoopi_deep M.g(3))
@test SnoopCompile.FromInvokeLatest cats
@test isignorable(cats[1])

# CalleeVariable
mysin(x) = 1
mycos(x) = 2
Expand Down

0 comments on commit 87dee94

Please sign in to comment.