Skip to content

Commit 78972c4

Browse files
committed
Restrict testing inference to 1.12
1 parent db6dfda commit 78972c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/forward_diff_no_inf.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ module forward_diff_no_inf
107107
@test f(3.5) == 3.5 # this will segfault if we are not handling phi nodes correctly
108108
end
109109

110-
@testset "Eras mode: $eras_mode" for eras_mode in (false, true)
110+
#only test this on new enough julia versions as exactly what infers can be fussy, as is running inference manually
111+
VERSION >= v"1.12.0-DEV.283"&& @testset "Eras mode: $eras_mode" for eras_mode in (false, true)
111112
foo(x, y) = x*x + y*y
112113
ir = first(only(Base.code_ircode(foo, Tuple{Any, Any})))
113114
Diffractor.forward_diff_no_inf!(ir, [SSAValue(1)] .=> 1; transform! = identity_transform!, eras_mode)

0 commit comments

Comments
 (0)