aboutsummaryrefslogblamecommitdiff
path: root/test/CodeGenCXX/try-catch.cpp
blob: 2b5f3232d1fb71ef148e86eb3d9dfc7bd91b6d3d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                               
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fexceptions | FileCheck %s

struct X { };

const X g();

void f() {
  try {
    throw g();
    // CHECK: @_ZTI1X to i8
  } catch (const X x) {
  }
}