Testcase for PR826
[oota-llvm.git] / test / Verifier / 2006-07-11-StoreStruct.ll
diff --git a/test/Verifier/2006-07-11-StoreStruct.ll b/test/Verifier/2006-07-11-StoreStruct.ll
new file mode 100644 (file)
index 0000000..31e2dd4
--- /dev/null
@@ -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
+}