From b744c9ba2461f76ff94b73b8a5c63de6cb934b90 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 16 Jul 2002 21:33:27 +0000 Subject: [PATCH] New testcase llvm-svn: 2931 --- .../Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll diff --git a/llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll b/llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll new file mode 100644 index 000000000000..c9277fb64fde --- /dev/null +++ b/llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll @@ -0,0 +1,10 @@ +; This crashes raise, with an cast<> failure + +; RUN: as < %s | opt -raise + +implementation +sbyte* %test(int* %ptr) { + %A = cast int* %ptr to sbyte * + %B = add sbyte* %A, %A + ret sbyte * %B +}