New testcase
authorChris Lattner <sabre@nondot.org>
Sat, 7 Jun 2003 21:43:56 +0000 (21:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Jun 2003 21:43:56 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6668 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LevelRaise/2003-06-07-EmptyArrayTest.ll [new file with mode: 0644]

diff --git a/test/Transforms/LevelRaise/2003-06-07-EmptyArrayTest.ll b/test/Transforms/LevelRaise/2003-06-07-EmptyArrayTest.ll
new file mode 100644 (file)
index 0000000..07f838a
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: as < %s | opt -raise -disable-output
+
+%T = type { [0 x ubyte] }
+
+void %test(%T* %tmp.22) {
+       %tmp.23 = getelementptr %T* %tmp.22, long 0, ubyte 0
+       %tmp.24 = cast [0 x ubyte]* %tmp.23 to sbyte**
+       %tmp.25 = load sbyte** %tmp.24
+       ret void
+}