xref: /aosp_15_r20/external/clang/test/CodeGenObjCXX/exception-cxx.mm (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -fobjc-exceptions -o - %s | FileCheck %s
2*67e74705SXin Li
3*67e74705SXin Li// rdar://problem/22155434
4*67e74705SXin Linamespace test0 {
5*67e74705SXin Li  void foo() {
6*67e74705SXin Li    try {
7*67e74705SXin Li      throw 0;
8*67e74705SXin Li    } catch (int e) {
9*67e74705SXin Li      return;
10*67e74705SXin Li    }
11*67e74705SXin Li  }
12*67e74705SXin Li// CHECK: define void @_ZN5test03fooEv() #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
13*67e74705SXin Li}
14