Skip to content

Commit 6e14270

Browse files
committed
fix test on 1.12+
1 parent f2d035c commit 6e14270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ Base.BroadcastStyle(::Broadcast.ArrayStyle{MyArray2}, S::Broadcast.DefaultArrayS
13811381
@testset "allocation test" begin
13821382
a = StructArray{ComplexF64}(undef, 1)
13831383
sa = StructArray{ComplexF64}((SizedVector{1}(a.re), SizedVector{1}(a.re)))
1384-
allocated(a) = @allocated a .+ 1
1384+
allocated(a) = @allocated (+).(a, 1) # `@allocated a .+ 1` is broken on 1.12
13851385
@test allocated(a) == 2allocated(a.re)
13861386
@test allocated(sa) == 2allocated(sa.re)
13871387
allocated2(a) = @allocated a .= complex.(a.im, a.re)

0 commit comments

Comments
 (0)