I'm trying to get clang++ to tell me there is a memory leak. I tried scan-build but it reported nothing. How do I get llvm/clang to warn me of this problem?
#include <iostream>
int main() {
int *a = new int;
*a = 8;
std::cout<< a << std::endl;
}