summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll')
-rw-r--r--llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll b/llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll
new file mode 100644
index 00000000000..9a5fcaeea7d
--- /dev/null
+++ b/llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll
@@ -0,0 +1,22 @@
+; RUN: opt < %s -inline -disable-output
+
+define i32 @main() personality i32 (...)* @__gxx_personality_v0 {
+entry:
+ invoke void @__main( )
+ to label %LongJmpBlkPost unwind label %LongJmpBlkPre
+
+LongJmpBlkPost:
+ ret i32 0
+
+LongJmpBlkPre:
+ %i.3 = phi i32 [ 0, %entry ]
+ %exn = landingpad {i8*, i32}
+ cleanup
+ ret i32 0
+}
+
+define void @__main() {
+ ret void
+}
+
+declare i32 @__gxx_personality_v0(...)
OpenPOWER on IntegriCloud