brintos

brintos / llvm-project-archived public Read only

0
0
Text · 470 B · 81afaf0 Raw
19 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm \2// RUN:   -fexceptions -fobjc-exceptions \3// RUN:   -o %t %s4// RUN: FileCheck < %t %s5//6// [irgen] [eh] Exception code built with clang (x86_64) crashes7 8// Check that we don't emit unnecessary personality function references.9struct t0_A { t0_A(); };10struct t0_B { t0_A a; };11 12// CHECK: define {{.*}} @_Z2t0v(){{.*}} {13// CHECK-NOT: objc_personality14// CHECK: }15t0_B& t0() {16 static t0_B x;17 return x;18}19