Skip to content

Commit b4de96b

Browse files
committed
Add empty bc test.
1 parent 02257b9 commit b4de96b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,8 @@ Base.BroadcastStyle(::Broadcast.ArrayStyle{MyArray2}, S::Broadcast.DefaultArrayS
13121312
b = @SMatrix [0. for i in 1:10, j in 1:10]
13131313
s = StructArray{ComplexF64}((a , b))
13141314
@test (@inferred bclog(s)) isa typeof(s)
1315+
s0 = StructArray{ComplexF64}((similar(a, Size(0,0)), similar(a, Size(0,0))))
1316+
@test (@inferred bclog(s0)) isa typeof(s0)
13151317
test_allocated(bclog, s)
13161318
@test abs.(s) .+ ((1,) .+ (1,2,3,4,5,6,7,8,9,10)) isa SMatrix
13171319
bc = Base.broadcasted(+, s, s, ntuple(identity, 10));

0 commit comments

Comments
 (0)