[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / null-cast.cpp
blobc80ab8fced1e09603d0304dc8932d6646544203b
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct A {};
4 struct B : virtual A {};
6 void foo() {
7 (void)static_cast<A&>(*(B *)0); // expected-warning {{binding dereferenced null pointer to reference has undefined behavior}}