Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / PowerPC / ignore-exceptions.cpp
blob6e9d1854c6469d3bedaa3b33f5b1051e39444034
1 // RUN: %clang_cc1 %s -triple powerpc64-linux -fexceptions -fcxx-exceptions -fignore-exceptions -emit-llvm -o - | FileCheck %s
3 struct A {
4 ~A(){}
5 };
7 void f(void) {
8 // CHECK-NOT: personality ptr @__gcc_personality_v0
9 A a;
10 try {
11 throw 1;
12 } catch(...) {
14 // CHECK: %a = alloca %struct.A, align 1
15 // CHECK: %exception = call ptr @__cxa_allocate_exception(i64 4) #1
16 // CHECK: store i32 1, ptr %exception, align 16
17 // CHECK: call void @__cxa_throw(ptr %exception, ptr @_ZTIi, ptr null) #2
18 // CHECK: unreachable
20 // CHECK-NOT: invoke
21 // CHECK-NOT: landingpad
22 // CHECK-NOT: __cxa_begin_catch
23 // CHECK-NOT: __cxa_end_catch