clang/test/CodeGenObjCXX/exception-cxx.mm
raw| 1 | // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -fobjc-exceptions -o - %s | FileCheck %s |
| 2 | |
| 3 | namespace 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 | } |