diff options
Diffstat (limited to 'test/Verifier/inalloca-vararg.ll')
-rwxr-xr-x | test/Verifier/inalloca-vararg.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Verifier/inalloca-vararg.ll b/test/Verifier/inalloca-vararg.ll new file mode 100755 index 0000000..5099fd1 --- /dev/null +++ b/test/Verifier/inalloca-vararg.ll @@ -0,0 +1,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, i32* inalloca %args, i32 3) +; CHECK: inalloca isn't on the last argument! + ret void +} |