p9-dynamic.cpp 371 B

123456789101112
  1. // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s
  2. void external();
  3. void target() throw(int)
  4. {
  5. // CHECK: invoke void @_Z8externalv()
  6. external();
  7. }
  8. // CHECK: landingpad { i8*, i32 }
  9. // CHECK-NEXT: filter [1 x i8*] [i8* bitcast (i8** @_ZTIi to i8*)]
  10. // CHECK: call void @__cxa_call_unexpected