new testcase
authorChris Lattner <sabre@nondot.org>
Thu, 20 Apr 2006 20:48:32 +0000 (20:48 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 20 Apr 2006 20:48:32 +0000 (20:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27911 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ScalarRepl/2006-04-20-PromoteCrash.ll [new file with mode: 0644]

diff --git a/test/Transforms/ScalarRepl/2006-04-20-PromoteCrash.ll b/test/Transforms/ScalarRepl/2006-04-20-PromoteCrash.ll
new file mode 100644 (file)
index 0000000..812e021
--- /dev/null
@@ -0,0 +1,18 @@
+; RUN: llvm-as < %s | opt -scalarrepl -disable-output
+
+void %output_toc() {
+entry:
+       %buf = alloca [256 x sbyte], align 16           ; <[256 x sbyte]*> [#uses=1]
+       %name = alloca sbyte*, align 4          ; <sbyte**> [#uses=1]
+       %real_name = alloca sbyte*, align 4             ; <sbyte**> [#uses=0]
+       "alloca point" = cast int 0 to int              ; <int> [#uses=0]
+       %buf = cast [256 x sbyte]* %buf to sbyte*               ; <sbyte*> [#uses=1]
+       store sbyte* %buf, sbyte** %name
+       call void %abort( )
+       unreachable
+
+return:                ; No predecessors!
+       ret void
+}
+
+declare void %abort()