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