Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / try-catch.cpp
blob5e9319c5daca434ad3168a8a9a83419af8cde1e0
1 // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s
3 struct X { };
5 const X g();
7 void f() {
8 try {
9 throw g();
10 // CHECK: @_ZTI1X
11 } catch (const X x) {
15 void h() {
16 try {
17 throw "ABC";
18 // CHECK: @_ZTIPKc
19 } catch (char const(&)[4]) {