1 // RUN: %clang_cc1 %s -triple x86_64-unknown-linux -fno-rtti-data -fsyntax-only -verify
8 virtual ~B() = default;
18 auto d
= dynamic_cast<D1
*>(b
); // expected-warning{{dynamic_cast will not work since RTTI data is disabled by -fno-rtti-data}}
19 void *v
= dynamic_cast<void *>(b
);
23 (void)typeid(*b
); // expected-warning{{typeid will not work since RTTI data is disabled by -fno-rtti-data}}
26 (void)typeid(*&b2
); // expected-warning{{typeid will not work since RTTI data is disabled by -fno-rtti-data}}
27 (void)typeid((B
&)b2
);
30 (void)typeid(br
); // expected-warning{{typeid will not work since RTTI data is disabled by -fno-rtti-data}}