blob: 0aa8cde024daf03180d60f4916096d887ea97bde [file] [log] [blame]
Daniel Dunbarb2987d12010-02-10 18:49:11 +00001// RUN: %clang_cc1 -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck --check-prefix=DEFAULT_EH %s
2// RUN: %clang_cc1 -fsjlj-exceptions -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck --check-prefix=SJLJ_EH %s
3
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}