Skip to content

Commit

Permalink
Add a test for #34459.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 24, 2023
1 parent 596ce65 commit 850cfd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/compiler/codegen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -797,3 +797,10 @@ f48085(@nospecialize x...) = length(x)

# Make sure that the bounds check is elided in tuple iteration
@test !occursin("call void @", get_llvm(iterate, Tuple{NTuple{4, Float64}, Int}))

# issue #34459
function f34459(args...)
Base.pointerset(args[1], 1, 1, 1)
return
end
@test !occursin("jl_f_tuple", get_llvm(f34459, Tuple{Ptr{Int}, Type{Int}}, true, false, false))

0 comments on commit 850cfd8

Please sign in to comment.