From fa4c20dd92cbfdae46841914430b43318511ed12 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 30 May 2003 05:26:08 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6427 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/ScalarRepl/2003-05-30-MultiLevel.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Transforms/ScalarRepl/2003-05-30-MultiLevel.ll 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 00000000000..d6f437e4a72 --- /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 +}