new testcase which crashes the inliner, thanks Bugpoint!
authorChris Lattner <sabre@nondot.org>
Mon, 22 Sep 2003 21:58:46 +0000 (21:58 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 22 Sep 2003 21:58:46 +0000 (21:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8663 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll [new file with mode: 0644]

diff --git a/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll b/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll
new file mode 100644 (file)
index 0000000..248f3d8
--- /dev/null
@@ -0,0 +1,26 @@
+; RUN: llvm-as < %s | opt -inline -disable-output
+
+implementation
+
+int %main() {
+entry:
+       invoke void %__main( )
+                       to label %Call2Invoke except label %LongJmpBlkPre
+
+Call2Invoke:
+       br label %LongJmpBlkPre
+
+LongJmpBlkPre:
+       %i.3 = phi uint [ 0, %entry ], [ 0, %Call2Invoke ]              ; <uint> [#uses=0]
+       ret int 0
+}
+
+void %__main() {
+       call void %__llvm_getGlobalCtors( )
+       call void %__llvm_getGlobalDtors( )
+       ret void
+}
+
+declare void %__llvm_getGlobalCtors()
+
+declare void %__llvm_getGlobalDtors()