From: Chris Lattner Date: Mon, 22 Sep 2003 21:58:46 +0000 (+0000) Subject: new testcase which crashes the inliner, thanks Bugpoint! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=21c6158d8334ba496880222793c3b0547fe98e30;p=oota-llvm.git new testcase which crashes the inliner, thanks Bugpoint! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8663 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll b/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll new file mode 100644 index 00000000000..248f3d8490e --- /dev/null +++ b/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll @@ -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 ] ; [#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()