Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
b9c1b51e45b845debb76d8658edabca70ca56079
/
.
/
clang-tools-extra
/
test
/
clang-tidy
/
modernize-use-nullptr.c
blob: c2ccbbd81171526ba6447ca244cb85a98b3868ab [
file
] [
log
] [
blame
]
// RUN: clang-tidy %s -checks=-*,modernize-use-nullptr -- | count 0
// Note: this test expects no diagnostics, but FileCheck cannot handle that,
// hence the use of | count 0.
#define
NULL
0
void
f
(
void
)
{
char
*
str
=
NULL
;
// ok
(
void
)
str
;
}