brintos

brintos / llvm-project-archived public Read only

0
0
Text · 637 B · 6e9d185 Raw
25 lines · cpp
1// RUN: %clang_cc1 %s -triple powerpc64-linux -fexceptions -fcxx-exceptions -fignore-exceptions -emit-llvm -o - | FileCheck %s2 3struct A {4  ~A(){}5};6 7void f(void) {8// CHECK-NOT: personality ptr @__gcc_personality_v09  A a;10  try {11    throw 1;12  } catch(...) {13  }14// CHECK:  %a = alloca %struct.A, align 115// CHECK:  %exception = call ptr @__cxa_allocate_exception(i64 4) #116// CHECK:  store i32 1, ptr %exception, align 1617// CHECK:  call void @__cxa_throw(ptr %exception, ptr @_ZTIi, ptr null) #218// CHECK:  unreachable19 20// CHECK-NOT: invoke21// CHECK-NOT: landingpad22// CHECK-NOT: __cxa_begin_catch23// CHECK-NOT: __cxa_end_catch24}25