summaryrefslogtreecommitdiff
path: root/test/Verifier/inalloca-vararg.ll
blob: 8521ebce2d9c129ee2066e978bb05060d3a24777 (plain)
1
2
3
4
5
6
7
8
9
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s

declare void @h(i32, ...)
define void @i() {
  %args = alloca i32, inalloca
  call void (i32, ...)* @h(i32 1, i32* inalloca %args, i32 3)
; CHECK: inalloca isn't on the last argument!
  ret void
}