Skip to content

Commit

Permalink
caching v1.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jan 29, 2024
1 parent f905e42 commit ee11f53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/rrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ function plaquette_sum(U)
return p
end


@static if VERSION >= v"1.9"
@testset "No caching byref julia" begin
U = Complex{Float64}[3.0 + 4.0im]
dU = Complex{Float64}[0.0]
Expand All @@ -299,5 +301,5 @@ end

@test dU[1] 7 * ( 3.0 + 4.0im )
end

end
end # ReverseRules

0 comments on commit ee11f53

Please sign in to comment.