summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-02 02:13:02 +0000
committerChris Lattner <sabre@nondot.org>2003-06-02 02:13:02 +0000
commitd50cbf00e3b972c41ccda810ab5a8fce0ae2e7c2 (patch)
treea05aaaf36ccc42a023487f9fedb91b4ebad3e856 /test
parent24a26e58ef065a411e49adc7cd85d945381bcb17 (diff)
downloadllvm-d50cbf00e3b972c41ccda810ab5a8fce0ae2e7c2.tar.gz
llvm-d50cbf00e3b972c41ccda810ab5a8fce0ae2e7c2.tar.bz2
llvm-d50cbf00e3b972c41ccda810ab5a8fce0ae2e7c2.tar.xz
Old testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/ScalarRepl/2003-05-30-InvalidIndices.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/ScalarRepl/2003-05-30-InvalidIndices.ll b/test/Transforms/ScalarRepl/2003-05-30-InvalidIndices.ll
new file mode 100644
index 0000000000..42f6f8b89d
--- /dev/null
+++ b/test/Transforms/ScalarRepl/2003-05-30-InvalidIndices.ll
@@ -0,0 +1,7 @@
+; RUN: as < %s | opt -scalarrepl
+
+void %main() {
+ %E = alloca { { int, float, double, long }, { int, float, double, long } } ; <{ { int, float, double, long }, { int, float, double, long } }*> [#uses=1]
+ %tmp.151 = getelementptr { { int, float, double, long }, { int, float, double, long } }* %E, long 0, ubyte 1, ubyte 3 ; <long*> [#uses=0]
+ ret void
+}