1 // RUN: %clang_cc1 %s -triple powerpc64-linux -fexceptions -fcxx-exceptions -fignore-exceptions -emit-llvm -o - | FileCheck %s
2 
3 struct A {
~AA4   ~A(){}
5 };
6 
f(void)7 void f(void) {
8 // CHECK-NOT: personality i8* bitcast (i32 (...)* @__gcc_personality_v0 to i8*)
9   A a;
10   try {
11     throw 1;
12   } catch(...) {
13   }
14 // CHECK:  %a = alloca %struct.A, align 1
15 // CHECK:  %exception = call i8* @__cxa_allocate_exception(i64 4) #1
16 // CHECK:  %0 = bitcast i8* %exception to i32*
17 // CHECK:  store i32 1, i32* %0, align 16
18 // CHECK:  call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null) #2
19 // CHECK:  unreachable
20 
21 // CHECK-NOT: invoke
22 // CHECK-NOT: landingpad
23 // CHECK-NOT: __cxa_begin_catch
24 // CHECK-NOT: __cxa_end_catch
25 }
26