brintos

brintos / llvm-project-archived public Read only

0
0
Text · 326 B · 5e9319c Raw
22 lines · cpp
1// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s2 3struct X { };4 5const X g();6 7void f() {8  try {9    throw g();10    // CHECK: @_ZTI1X11  } catch (const X x) {12  }13}14 15void h() {16  try {17    throw "ABC";18    // CHECK: @_ZTIPKc19  } catch (char const(&)[4]) {20  }21}22