aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/alloca-invalid-type-2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/alloca-invalid-type-2.ll')
-rw-r--r--test/Assembler/alloca-invalid-type-2.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Assembler/alloca-invalid-type-2.ll b/test/Assembler/alloca-invalid-type-2.ll
new file mode 100644
index 0000000..7b1cc62
--- /dev/null
+++ b/test/Assembler/alloca-invalid-type-2.ll
@@ -0,0 +1,9 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+
+; CHECK: invalid type for alloca
+
+define void @test() {
+entry:
+ alloca i32 (i32)
+ ret void
+}