1 // RUN: %clang_cc1 %s -triple x86_64-windows-msvc -fdiagnostics-format msvc -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 /GR-}}
19 void *v
= dynamic_cast<void *>(b
); // expected-warning{{dynamic_cast will not work since RTTI data is disabled by /GR-}}
23 (void)typeid(*b
); // expected-warning{{typeid will not work since RTTI data is disabled by /GR-}}
26 (void)typeid(*&b2
); // expected-warning{{typeid will not work since RTTI data is disabled by /GR-}}
27 (void)typeid((B
&)b2
);
30 (void)typeid(br
); // expected-warning{{typeid will not work since RTTI data is disabled by /GR-}}