cppcheck/internaltesting/testnew.cpp

11 lines
93 B
C++

void f()
{
a = new char[10];
fred = new Fred;
fred = new Fred();
}