Skip to content

Commit b88dd7c

Browse files
committed
modifying test kernel for the flag to call
1 parent 3c082e6 commit b88dd7c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/runtests.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@ end
2828

2929
if Base.JLOptions().check_bounds == 0 || Base.JLOptions().check_bounds == 1
3030
# testing bounds errors
31-
@kernel inbounds=false my_bounded_kernel(a) = a[1]
31+
@kernel inbounds=false function my_bounded_kernel()
32+
idx = @index(Global, Linear)
33+
end
3234
@test_throws BoundsError(Int64[],(1,)) my_bounded_kernel(CPU())(Int[], ndrange=1)
3335
end
3436

3537
if Base.JLOptions().check_bounds == 0 || Base.JLOptions().check_bounds == 2
36-
@kernel inbounds=true my_inbounds_kernel(a) = a[1]
38+
@kernel inbounds=true function my_bounded_kernel()
39+
idx = @index(Global, Linear)
40+
end
3741
@test nothing == my_inbounds_kernel(CPU())(Int[], ndrange=1)
3842
end
3943

0 commit comments

Comments
 (0)