xref: /aosp_15_r20/external/clang/test/CXX/except/except.spec/p9-dynamic.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s
2*67e74705SXin Li 
3*67e74705SXin Li void external();
4*67e74705SXin Li 
target()5*67e74705SXin Li void target() throw(int)
6*67e74705SXin Li {
7*67e74705SXin Li   // CHECK: invoke void @_Z8externalv()
8*67e74705SXin Li   external();
9*67e74705SXin Li }
10*67e74705SXin Li // CHECK:      landingpad { i8*, i32 }
11*67e74705SXin Li // CHECK-NEXT:   filter [1 x i8*] [i8* bitcast (i8** @_ZTIi to i8*)]
12*67e74705SXin Li // CHECK:      call void @__cxa_call_unexpected
13