blob: 5bfc7dce31a29880f17cc57f454e0272c589e3af [file] [log] [blame]
John McCallda65ea82010-07-13 20:32:21 +00001// 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 Dunbarb2987d12010-02-10 18:49:11 +00003
4// DEFAULT_EH: declare void @_Unwind_Resume_or_Rethrow(i8*)
John McCalla5f2de22010-08-11 20:59:53 +00005// SJLJ_EH: declare void @_Unwind_SjLj_Resume_or_Rethrow(i8*)
Daniel Dunbarb2987d12010-02-10 18:49:11 +00006
7void f1(), f2();
8void f0() {
9 @try {
10 f1();
11 } @catch (...) {
12 f2();
13 }
14}