summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/clang-analyzer-core.NonNullParamChecker.cpp
blob: bc071f545351991fa9566e6835a3563d57794f8a (plain)
1
2
3
4
5
6
int f(int *p) __attribute__((nonnull));

void test(int *p) {
  if (!p)
    f(p); // warn
}