aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/ScalarRepl/2003-05-30-MultiLevel.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/ScalarRepl/2003-05-30-MultiLevel.ll b/test/Transforms/ScalarRepl/2003-05-30-MultiLevel.ll
new file mode 100644
index 0000000000..d6f437e4a7
--- /dev/null
+++ b/test/Transforms/ScalarRepl/2003-05-30-MultiLevel.ll
@@ -0,0 +1,9 @@
+; RUN: as < %s | opt -scalarrepl
+
+int %test() {
+ %X = alloca { [ 4 x int] }
+ %Y = getelementptr { [ 4 x int] }* %X, long 0, ubyte 0, long 2
+ store int 4, int* %Y
+ %Z = load int* %Y
+ ret int %Z
+}