diff options
Diffstat (limited to 'test/CodeGen/ARM/noreturn.ll')
-rw-r--r-- | test/CodeGen/ARM/noreturn.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/noreturn.ll b/test/CodeGen/ARM/noreturn.ll index 4c876ce..edc3333 100644 --- a/test/CodeGen/ARM/noreturn.ll +++ b/test/CodeGen/ARM/noreturn.ll @@ -43,6 +43,23 @@ entry: unreachable } +; Test case for uwtable +define i32 @test4() uwtable { +; CHECK-LABEL: @test4 +; CHECK: push +entry: + tail call void @overflow() #0 + unreachable +} + +define i32 @test5() uwtable { +; CHECK-LABEL: @test5 +; CHECK: push +entry: + tail call void @overflow_with_unwind() #1 + unreachable +} + ; Function Attrs: noreturn declare void @overflow_with_unwind() #1 |