summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/unwind-fn.m
blob: 0aa8cde024daf03180d60f4916096d887ea97bde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck --check-prefix=DEFAULT_EH %s
// RUN: %clang_cc1 -fsjlj-exceptions -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck --check-prefix=SJLJ_EH %s

// DEFAULT_EH: declare void @_Unwind_Resume_or_Rethrow(i8*)
// SJLJ_EH: declare void @_Unwind_SjLj_Resume(i8*)

void f1(), f2();
void f0() {
  @try {
    f1();
  } @catch (...) {
    f2();
  }
}
OpenPOWER on IntegriCloud