aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/invalid-ptr-checker.cpp
blob: 58bb45e0fb8421df53494511ada9bbe105da911e (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_analyze_cc1 -analyzer-checker=core,security.cert.env.InvalidPtr -verify %s

// expected-no-diagnostics

namespace other {
int strerror(int errnum); // custom strerror
void no_crash_on_custom_strerror() {
  (void)strerror(0); // no-crash
}
} // namespace other