aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/Inline/unwindto.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/Inline/unwindto.ll')
-rw-r--r--test/Transforms/Inline/unwindto.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/Inline/unwindto.ll b/test/Transforms/Inline/unwindto.ll
new file mode 100644
index 0000000000..28e857d2f9
--- /dev/null
+++ b/test/Transforms/Inline/unwindto.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | opt -inline | llvm-dis | grep "br label %cleanup"
+
+define void @g() {
+ unwind
+}
+
+define i32 @f1() {
+entry: unwind_to %cleanup
+ call void @g()
+ ret i32 0
+cleanup:
+ ret i32 1
+}