Add more reference-binding examples from the C++0x working paper, all of which seem...
[clang.git] / test / CodeGenObjC / unwind-fn.m
blob5bfc7dce31a29880f17cc57f454e0272c589e3af
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
4 // DEFAULT_EH: declare void @_Unwind_Resume_or_Rethrow(i8*)
5 // SJLJ_EH: declare void @_Unwind_SjLj_Resume_or_Rethrow(i8*)
7 void f1(), f2();
8 void f0() {
9   @try {
10     f1();
11   } @catch (...) {
12     f2();
13   }