summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Verifier/2006-07-11-StoreStruct.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Verifier/2006-07-11-StoreStruct.ll b/test/Verifier/2006-07-11-StoreStruct.ll
new file mode 100644
index 0000000000..31e2dd4406
--- /dev/null
+++ b/test/Verifier/2006-07-11-StoreStruct.ll
@@ -0,0 +1,11 @@
+; RUN: not llvm-as %s -o /dev/null -f
+; PR826
+
+ %struct_4 = type { int }
+
+implementation ; Functions:
+
+void %test() {
+ store %struct_4 zeroinitializer, %struct_4* null
+ unreachable
+}