Skip to content

Commit bb931bb

Browse files
committed
only test allocated on 1.1+
1 parent 9faefeb commit bb931bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/broadcasttests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ end
8282
a = BroadcastArray(+, randn(400), randn(400))
8383
b = similar(a)
8484
copyto!(b, a)
85-
@test @allocated(copyto!(b, a)) == 0
85+
if VERSION v"1.1"
86+
@test @allocated(copyto!(b, a)) == 0
87+
end
8688
@test b == a
8789
end
8890

0 commit comments

Comments
 (0)