bolt/deps/llvm-18.1.8/clang/test/Analysis/invalid-ptr-checker.cpp

11 lines
275 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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