From 5bc76cec9a30fce6010159eee6ce495182c5d509 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 7 Jun 2003 21:43:56 +0000 Subject: [PATCH] New testcase llvm-svn: 6668 --- .../Transforms/LevelRaise/2003-06-07-EmptyArrayTest.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/Regression/Transforms/LevelRaise/2003-06-07-EmptyArrayTest.ll diff --git a/test/Regression/Transforms/LevelRaise/2003-06-07-EmptyArrayTest.ll b/test/Regression/Transforms/LevelRaise/2003-06-07-EmptyArrayTest.ll new file mode 100644 index 00000000000..07f838a041a --- /dev/null +++ b/test/Regression/Transforms/LevelRaise/2003-06-07-EmptyArrayTest.ll @@ -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 +}