Skip to content

Commit

Permalink
Add a test verifying codegen of non-concrete varargs (#48395)
Browse files Browse the repository at this point in the history
This was issue #34459, fixed by #46953.
  • Loading branch information
maleadt authored Jan 25, 2023
1 parent 30d11a3 commit 6c3808b
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 6c3808b

Please sign in to comment.