bolt/deps/llvm-18.1.8/llvm/test/Verifier/inalloca-vararg.ll

10 lines
255 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; 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
}