1 | // RUN: clang-tidy %s -checks=-*,modernize-use-nullptr -- | 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 |
7 | void f(void) { |
8 | char *str = NULL; // ok |
9 | (void)str; |
10 | } |
11 |