Skip to content

Commit

Permalink
Add a test for PR 32097 (#32124)
Browse files Browse the repository at this point in the history
This example reproduces the issue observed in issue 32092 on Julia 1.1
that was fixed by PR 32097.
  • Loading branch information
ararslan authored May 23, 2019
1 parent c532cf2 commit 6da7aa8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions stdlib/LinearAlgebra/test/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -508,4 +508,13 @@ end
@test success(pipeline(cmd; stdout=stdout, stderr=stderr))
end

struct A32092
x::Float64
end
Base.:+(x::Float64, a::A32092) = x + a.x
Base.:*(x::Float64, a::A32092) = x * a.x
@testset "Issue #32092" begin
@test ones(2, 2) * [A32092(1.0), A32092(2.0)] == fill(3.0, (2,))
end

end # module TestMatmul

1 comment on commit 6da7aa8

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

Please sign in to comment.