summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/readability-delete-null-pointer.cpp
blob: e083404043504bdeca115cd666e300617427af6c (plain)
1
2
3
4
5
6
void func() {
  int* f = 0;
  if (f) {
    delete f;
  }
}