trisquel-icecat/icecat/tools/clang-tidy/test/clang-analyzer-cplusplus.NewDeleteLeaks.cpp

6 lines
105 B
C++

// https://clang-analyzer.llvm.org/available_checks.html
void test()
{
int *p = new int;
} // warning