aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjCXX/exception-cxx.mm
blob: 70401b0c368c8646bc93a05e10d4ff311ffdb4ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -fobjc-exceptions -o - %s | FileCheck %s

namespace test0 {
  void foo() {
    try {
      throw 0;
    } catch (int e) {
      return;
    }
  }
// CHECK: define{{.*}} void @_ZN5test03fooEv() #0 personality ptr @__gxx_personality_v0
}