testcase that crashes scalarrepl
authorChris Lattner <sabre@nondot.org>
Tue, 24 Jan 2006 19:34:57 +0000 (19:34 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Jan 2006 19:34:57 +0000 (19:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25586 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll [new file with mode: 0644]

diff --git a/test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll b/test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll
new file mode 100644 (file)
index 0000000..58f7c04
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -scalarrepl -disable-output
+
+target endian = big
+target pointersize = 32
+
+int %test(long %L) {
+       %X = alloca int
+       %Y = cast int* %X to ulong*
+       store ulong 0, ulong* %Y
+       %Z = load int *%X
+       ret int %Z
+}