astyle fix
This commit is contained in:
parent
34540fee04
commit
7002af6c9a
|
@ -2090,24 +2090,24 @@ private:
|
||||||
|
|
||||||
void if_with_and()
|
void if_with_and()
|
||||||
{
|
{
|
||||||
check( "void f()\n"
|
check("void f()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" char *a = new char[10];\n"
|
" char *a = new char[10];\n"
|
||||||
" if (!a && b() )\n"
|
" if (!a && b() )\n"
|
||||||
" return;\n"
|
" return;\n"
|
||||||
"\n"
|
"\n"
|
||||||
" delete [] a;\n"
|
" delete [] a;\n"
|
||||||
"}\n", true);
|
"}\n", true);
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
check( "void f()\n"
|
check("void f()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" char *a = new char[10];\n"
|
" char *a = new char[10];\n"
|
||||||
" if (b() && !a )\n"
|
" if (b() && !a )\n"
|
||||||
" return;\n"
|
" return;\n"
|
||||||
"\n"
|
"\n"
|
||||||
" delete [] a;\n"
|
" delete [] a;\n"
|
||||||
"}\n", true);
|
"}\n", true);
|
||||||
TODO_ASSERT_EQUALS("", errout.str());
|
TODO_ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue