run astyle
This commit is contained in:
parent
23e4f020e9
commit
d985fc008a
|
@ -2189,14 +2189,14 @@ private:
|
||||||
"{\n"
|
"{\n"
|
||||||
" std::string *x = new std::string;\n"
|
" std::string *x = new std::string;\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
TODO_ASSERT_EQUALS("[test.cpp:3]: (error) Memory leak: x\n","", errout.str());
|
TODO_ASSERT_EQUALS("[test.cpp:3]: (error) Memory leak: x\n","", errout.str());
|
||||||
|
|
||||||
check("void f(void) \n"
|
check("void f(void) \n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" std::string *x = new std::string;\n"
|
" std::string *x = new std::string;\n"
|
||||||
" delete x;\n"
|
" delete x;\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void allocfunc1()
|
void allocfunc1()
|
||||||
|
|
Loading…
Reference in New Issue