forked from mirrors/gecko-dev
Reformatting this directory can break some of the tests here. Differential Revision: https://phabricator.services.mozilla.com/D13518
14 lines
219 B
C++
14 lines
219 B
C++
// https://clang-analyzer.llvm.org/available_checks.html
|
|
|
|
#include "structures.h"
|
|
|
|
int my_strlen(const char* s)
|
|
{
|
|
return strlen(s); // warning
|
|
}
|
|
|
|
int bad_caller()
|
|
{
|
|
const char* s = nullptr;
|
|
return my_strlen(s);
|
|
}
|