Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions stdlib/LinearAlgebra/test/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -979,4 +979,17 @@ end
end
end

@testset "Issue #46865: mul!() with non-const alpha, beta" begin
f!(C,A,B,alphas,betas) = mul!(C, A, B, alphas[1], betas[1])
alphas = [1.0]
betas = [0.5]
for d in [2,3,4] # test native small-matrix cases as well as BLAS
A = rand(d,d)
B = copy(A)
C = copy(A)
f!(C, A, B, alphas, betas)
@test_broken (@allocated f!(C, A, B, alphas, betas)) == 0
end
end

end # module TestMatmul