summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-11 20:29:21 +0000
committerChris Lattner <sabre@nondot.org>2006-07-11 20:29:21 +0000
commitf7cb6749c9cf17f2127ecab028b1184a987aa42f (patch)
tree5416de5462a80afc8eacd7f23e8021b1dbd7bea8 /test
parentf7eb5d0b0239a11124bbf4799ef36d865dff3e5c (diff)
downloadllvm-f7cb6749c9cf17f2127ecab028b1184a987aa42f.tar.gz
llvm-f7cb6749c9cf17f2127ecab028b1184a987aa42f.tar.bz2
llvm-f7cb6749c9cf17f2127ecab028b1184a987aa42f.tar.xz
Testcase for PR826
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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
+}