Skip to content

Commit 6c3808b

Browse files
authored
Add a test verifying codegen of non-concrete varargs (#48395)
This was issue #34459, fixed by #46953.
1 parent 30d11a3 commit 6c3808b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/compiler/codegen.jl

Lines changed: 7 additions & 0 deletions
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)