summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/checkers/modernize-use-nullptr.c
blob: c2ccbbd81171526ba6447ca244cb85a98b3868ab (plain)
1
2
3
4
5
6
7
8
9
10
// 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;
}
OpenPOWER on IntegriCloud