1 // RUN: %clang_cc1 -triple x86_64-unknown-linux -fsyntax-only -verify -fno-rtti %s
9 (void)typeid(int); // expected-error {{use of typeid requires -frtti}}
23 return dynamic_cast<B
*>(a
) != 0; // expected-error {{use of dynamic_cast requires -frtti}}
26 void* getMostDerived(A
* a
) {
27 // This cast does not use RTTI.
28 return dynamic_cast<void *>(a
);