blob: 48217f07f97469725954df043d147c589c0eec4d [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*)
5// SJLJ_EH: declare void @_Unwind_SjLj_Resume(i8*)
6
7void f1(), f2();
8void f0() {
9 @try {
10 f1();
11 } @catch (...) {
12 f2();
13 }
14}