Home | History | Annotate | Download | only in CodeGenObjCXX
      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 extern "C" {
      4   int __objc_personality_v0();
      5 }
      6 
      7 void *abuse_personality_func() {
      8   return (void *)&__objc_personality_v0;
      9 }
     10 
     11 void foo() {
     12   try {
     13     throw 0;
     14   } catch (int e) {
     15     return;
     16   }
     17 }
     18 
     19 // CHECK: define void @_Z3foov() {{#[0-9]+}} personality i8* bitcast (i32 ()* @__objc_personality_v0 to i8*)
     20