Skip to content

Commit

Permalink
Add inference test
Browse files Browse the repository at this point in the history
  • Loading branch information
willtebbutt committed May 28, 2024
1 parent 0036ff2 commit dda8a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ using Core.Compiler: IRCode
ir = Base.code_ircode_by_type(Tuple{typeof(sin), Float64})[1][1]
oc = OpaqueClosure(ir; do_compile=true)
mc = MistyClosure(oc, ir)
@test mc(5.0) == sin(5.0)
@test @inferred(mc(5.0)) == sin(5.0)
end

0 comments on commit dda8a15

Please sign in to comment.