Skip to content

Commit

Permalink
Verify that _unsafe_copyto! works with abstract element types
Browse files Browse the repository at this point in the history
  • Loading branch information
willtebbutt committed Aug 8, 2024
1 parent 556fe00 commit b7b4bf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rrules/builtins.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,10 @@ function generate_derived_rrule!!_test_cases(rng_ctor, ::Val{:builtins})
(false, :none, nothing, getindex, randn(5), [1, 2, 2]),
(false, :none, nothing, setindex!, randn(5), [4.0, 5.0], [1, 1]),
(false, :none, nothing, setindex!, randn(5), [4.0, 5.0, 6.0], [1, 2, 2]),
(
false, :none, nothing,
Base._unsafe_copyto!, fill!(Matrix{Real}(undef, 5, 4), 1.0), 3, randn(10), 2, 4,
),
]
memory = Any[]
return test_cases, memory
Expand Down

0 comments on commit b7b4bf1

Please sign in to comment.