repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
null-cast.cpp
blob
c80ab8fced1e09603d0304dc8932d6646544203b
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
struct
A
{};
4
struct
B
:
virtual
A
{};
5
6
void
foo
() {
7
(
void
)
static_cast
<
A
&>(*(
B
*)
0
);
// expected-warning {{binding dereferenced null pointer to reference has undefined behavior}}
8
}