aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll b/test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll
new file mode 100644
index 0000000000..58f7c04e05
--- /dev/null
+++ b/test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll
@@ -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
+}