xref: /llvm-project/clang/test/CodeGenObjCXX/exception-cxx.mm (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -fobjc-exceptions -o - %s | FileCheck %s
2
3namespace test0 {
4  void foo() {
5    try {
6      throw 0;
7    } catch (int e) {
8      return;
9    }
10  }
11// CHECK: define{{.*}} void @_ZN5test03fooEv() #0 personality ptr @__gxx_personality_v0
12}
13