summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/unwindto.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/unwindto.ll b/llvm/test/Transforms/SimplifyCFG/unwindto.ll
index e42a831766c..28d9d1e6e39 100644
--- a/llvm/test/Transforms/SimplifyCFG/unwindto.ll
+++ b/llvm/test/Transforms/SimplifyCFG/unwindto.ll
@@ -33,3 +33,11 @@ bb4: unwind_to %cleanup
cleanup:
ret i32 1
}
+
+define i32 @f3() {
+entry: unwind_to %cleanup
+ call void @g(i32 0)
+ ret i32 0
+cleanup:
+ unwind
+}
OpenPOWER on IntegriCloud