Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
49a2fd2758996b6f674babf19c75b3d01e77e2d4
/
.
/
test
/
Analysis
/
null-deref-ps.c
blob: c73a0384fcd895235621e2726220d281bfdb68f2 [
file
] [
log
] [
blame
]
// RUN: clang -checker-simple -verify %s
void
f1
(
int
*
p
)
{
if
(
p
)
*
p
=
1
;
else
*
p
=
0
;
// expected-warning{{ereference}}
}