Skip to content

Commit

Permalink
fix precompile test: not sure what changed that now we allocate this,…
Browse files Browse the repository at this point in the history
… but this is equivalent
  • Loading branch information
vtjnash committed Oct 30, 2024
1 parent cf86ca9 commit c67759e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1209,13 +1209,13 @@ precompile_test_harness("invoke") do dir
end

m = get_method_for_type(M.h, Real)
@test isempty(Base.specializations(m))
@test nvalid(m.specializations::Core.MethodInstance) == 0
m = get_method_for_type(M.hnc, Real)
@test isempty(Base.specializations(m))
@test nvalid(m.specializations::Core.MethodInstance) == 0
m = only(methods(M.callq))
@test isempty(Base.specializations(m)) || nvalid(m.specializations::Core.MethodInstance) == 0
@test nvalid(m.specializations::Core.MethodInstance) == 0
m = only(methods(M.callqnc))
@test isempty(Base.specializations(m)) || nvalid(m.specializations::Core.MethodInstance) == 0
@test nvalid(m.specializations::Core.MethodInstance) == 0
m = only(methods(M.callqi))
@test (m.specializations::Core.MethodInstance).specTypes == Tuple{typeof(M.callqi), Int}
m = only(methods(M.callqnci))
Expand Down

0 comments on commit c67759e

Please sign in to comment.