1 // RUN: %clang_cc1 -emit-llvm %s -verify -fno-rtti -triple %itanium_abi_triple -o - | FileCheck %s
2 // expected-no-diagnostics
12 // An upcast can be resolved statically and can be used with -fno-rtti, iff it
13 // does not use runtime support.
15 return dynamic_cast<A
*>(b
);
16 // CHECK-LABEL: define {{.*}}ptr @_Z6upcastP1B
17 // CHECK-NOT: call {{.*}}ptr @__dynamic_cast
20 // A NoOp dynamic_cast can be used with -fno-rtti iff it does not use
23 return dynamic_cast<B
*>(b
);
24 // CHECK-LABEL: define {{.*}}ptr @_Z8samecastP1B
25 // CHECK-NOT: call {{.*}}ptr @__dynamic_cast