Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 55513d4

Browse files
committed
Fixes the syntax?
1 parent 2b67d66 commit 55513d4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/test_sparse_jacobian.jl

+5-3
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,17 @@ end
166166

167167
@static if VERSION v"1.9"
168168
using AllocCheck
169+
end
169170

171+
@static if VERSION v"1.9"
170172
# Testing that the non-sparse jacobian's are non-allocating.
171173
fvcat(x) = vcat(x, x)
172174

173-
x_sa = @SVector randn(Float32, 10);
175+
x_sa = @SVector randn(Float32, 10)
174176

175177
J_true_sa = ForwardDiff.jacobian(fvcat, x_sa)
176178

177-
@check_allocs function __sparse_jacobian_no_allocs(ad, sd, f::F, x) where {F}
179+
AllocCheck.@check_allocs function __sparse_jacobian_no_allocs(ad, sd, f::F, x) where {F}
178180
return sparse_jacobian(ad, sd, f, x)
179181
end
180182

@@ -192,4 +194,4 @@ end
192194
@test J J_true_sa
193195
end
194196
end
195-
end
197+
end

0 commit comments

Comments
 (0)