| 1 |
// RUN: %clang_cc1 -I%S %s -O3 -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s |
| 2 |
struct A { virtual ~A(); }; |
| 3 |
struct B : A { }; |
| 4 |
|
| 5 |
void foo(A* a) { |
| 6 |
// CHECK-NOT: call {{.*}} @__dynamic_cast |
| 7 |
B* b = dynamic_cast<B*>(a); |
| 8 |
} |