xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-nullptr.c (revision 803cbcbc4029fc65188f6c1083a230341279b2d2)
1*803cbcbcSBjörn Svensson // RUN: clang-tidy %s -checks=-*,modernize-use-nullptr -- -std=c17 | count 0
289a1d03eSRichard 
389a1d03eSRichard // Note: this test expects no diagnostics, but FileCheck cannot handle that,
489a1d03eSRichard // hence the use of | count 0.
589a1d03eSRichard 
689a1d03eSRichard #define NULL 0
f(void)789a1d03eSRichard void f(void) {
889a1d03eSRichard   char *str = NULL; // ok
989a1d03eSRichard   (void)str;
1089a1d03eSRichard }
11