aboutsummaryrefslogtreecommitdiff
path: root/test/Verifier/2008-03-01-AllocaSized.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Verifier/2008-03-01-AllocaSized.ll')
-rw-r--r--test/Verifier/2008-03-01-AllocaSized.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Verifier/2008-03-01-AllocaSized.ll b/test/Verifier/2008-03-01-AllocaSized.ll
new file mode 100644
index 0000000000..eb96ced788
--- /dev/null
+++ b/test/Verifier/2008-03-01-AllocaSized.ll
@@ -0,0 +1,8 @@
+; RUN: not llvm-as -f %s -o /dev/null |& grep {Cannot allocate unsized type}
+; PR2113
+
+define void @test() {
+ %A = alloca void()
+ ret void
+}
+