xref: /llvm-project/clang/test/Analysis/invalid-ptr-checker.cpp (revision e096c144921daba59963f15e89d2ca6fb32d3a78)
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,security.cert.env.InvalidPtr -verify %s
2 
3 // expected-no-diagnostics
4 
5 namespace other {
6 int strerror(int errnum); // custom strerror
no_crash_on_custom_strerror()7 void no_crash_on_custom_strerror() {
8   (void)strerror(0); // no-crash
9 }
10 } // namespace other
11