llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize-use-nullptr.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
249 B
C
Raw Normal View History

// 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;
}