Skip to content

Commit c51f9cc

Browse files
committed
Add a test verifying codegen of non-concrete varargs
This was issue #34459, fixed by #46953. [skip ci]
1 parent 596ce65 commit c51f9cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/compiler/codegen.jl

+7
Original file line numberDiff line numberDiff line change
@@ -797,3 +797,10 @@ f48085(@nospecialize x...) = length(x)
797797

798798
# Make sure that the bounds check is elided in tuple iteration
799799
@test !occursin("call void @", get_llvm(iterate, Tuple{NTuple{4, Float64}, Int}))
800+
801+
# issue #34459
802+
function f34459(args...)
803+
Base.pointerset(args[1], 1, 1, 1)
804+
return
805+
end
806+
@test !occursin("jl_f_tuple", get_llvm(f34459, Tuple{Ptr{Int}, Type{Int}}, true, false, false))

0 commit comments

Comments
 (0)