aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-22 21:58:46 +0000
committerChris Lattner <sabre@nondot.org>2003-09-22 21:58:46 +0000
commit21c6158d8334ba496880222793c3b0547fe98e30 (patch)
tree05b58feb4fb201dbcca12a007bcd887510584e54
parent22b9aab760fbb9191674b73e228b99d246ad3665 (diff)
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
-rw-r--r--test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll26
1 files changed, 26 insertions, 0 deletions
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 0000000000..248f3d8490
--- /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 ] ; <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()