xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-nullptr.c (revision 803cbcbc4029fc65188f6c1083a230341279b2d2)
1 // RUN: clang-tidy %s -checks=-*,modernize-use-nullptr -- -std=c17 | count 0
2 
3 // Note: this test expects no diagnostics, but FileCheck cannot handle that,
4 // hence the use of | count 0.
5 
6 #define NULL 0
f(void)7 void f(void) {
8   char *str = NULL; // ok
9   (void)str;
10 }
11