New testcase
authorChris Lattner <sabre@nondot.org>
Tue, 16 Jul 2002 21:33:27 +0000 (21:33 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Jul 2002 21:33:27 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2931 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll [new file with mode: 0644]

diff --git a/test/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll b/test/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll
new file mode 100644 (file)
index 0000000..c9277fb
--- /dev/null
@@ -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
+}