diff options
Diffstat (limited to 'test/Transforms/SimplifyCFG/unwindto.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/unwindto.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/unwindto.ll b/test/Transforms/SimplifyCFG/unwindto.ll index 28d9d1e..4e91c83 100644 --- a/test/Transforms/SimplifyCFG/unwindto.ll +++ b/test/Transforms/SimplifyCFG/unwindto.ll @@ -41,3 +41,21 @@ entry: unwind_to %cleanup cleanup: unwind } + +define i32 @f4() { +entry: unwind_to %cleanup + call void @g(i32 0) + br label %cleanup +cleanup: + unwind +} + +define i32 @f5() { +entry: unwind_to %cleanup + call void @g(i32 0) + br label %other +other: + ret i32 0 +cleanup: + unwind +} |