brintos

brintos / llvm-project-archived public Read only

0
0
Text · 273 B · 8154cc1 Raw
9 lines · cpp
1// RUN: %clang_cc1 -I%S %s -O3 -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s2struct A { virtual ~A(); };3struct B : A { };4 5void foo(A* a) {6  // CHECK-NOT: call {{.*}} @__dynamic_cast7  B* b = dynamic_cast<B*>(a);8}9