John McCall | da65ea8 | 2010-07-13 20:32:21 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fobjc-nonfragile-abi -emit-llvm -fexceptions -o - %s | FileCheck --check-prefix=DEFAULT_EH %s |
| 2 | // RUN: %clang_cc1 -fsjlj-exceptions -fobjc-nonfragile-abi -fexceptions -emit-llvm -o - %s | FileCheck --check-prefix=SJLJ_EH %s |
Daniel Dunbar | b2987d1 | 2010-02-10 18:49:11 +0000 | [diff] [blame] | 3 | |
| 4 | // DEFAULT_EH: declare void @_Unwind_Resume_or_Rethrow(i8*) |
John McCall | a5f2de2 | 2010-08-11 20:59:53 +0000 | [diff] [blame] | 5 | // SJLJ_EH: declare void @_Unwind_SjLj_Resume_or_Rethrow(i8*) |
Daniel Dunbar | b2987d1 | 2010-02-10 18:49:11 +0000 | [diff] [blame] | 6 | |
| 7 | void f1(), f2(); |
| 8 | void f0() { |
| 9 | @try { |
| 10 | f1(); |
| 11 | } @catch (...) { |
| 12 | f2(); |
| 13 | } |
| 14 | } |