1 // RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -o - | FileCheck %s
2 struct A
{ virtual void f(); };
5 // CHECK: {{define.*@_Z1fP1A}}
6 // CHECK-SAME: personality ptr @__gxx_personality_v0
10 // CHECK: call ptr @__dynamic_cast
12 // CHECK: invoke void @__cxa_bad_cast() [[NR:#[0-9]+]]
13 dynamic_cast<const B
&>(*a
);
15 // CHECK: landingpad { ptr, i32 }
16 // CHECK-NEXT: catch ptr null
21 // CHECK: declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) [[NUW_RO:#[0-9]+]]
23 // CHECK: attributes [[NUW_RO]] = { nounwind willreturn memory(read) }
24 // CHECK: attributes [[NR]] = { noreturn }