aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Verifier/inalloca-vararg.ll
blob: ce814f0d9144e369716b7d98a0f90b1895a1d2b9 (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 inalloca i32
  call void (i32, ...) @h(i32 1, ptr inalloca(i32) %args, i32 3)
; CHECK: inalloca isn't on the last argument!
  ret void
}