p9-dynamic.cpp revision addd80d1c80d1e9f249988452103c93a564945f0
1// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s 2 3void external(); 4 5void target() throw(int) 6{ 7 // CHECK: invoke void @_Z8externalv() 8 external(); 9} 10// CHECK: call i32 (i8*, i8*, ...)* @llvm.eh.selector({{.*}} i8* bitcast (i8** @_ZTIi to i8*), i8* null) nounwind 11// CHECK: call void @__cxa_call_unexpected 12