mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 12:36:37 +00:00
11 lines
275 B
C++
11 lines
275 B
C++
// 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
|