astyle run

This commit is contained in:
Ettl Martin 2012-04-01 15:56:48 +02:00
parent 083954049f
commit 8e9c09659f
1 changed files with 8 additions and 8 deletions

View File

@ -51,7 +51,7 @@ private:
TEST_CASE(nullpointer15); // #3560 (fp: return p ? f(*p) : f(0)) TEST_CASE(nullpointer15); // #3560 (fp: return p ? f(*p) : f(0))
TEST_CASE(nullpointer16); // #3591 TEST_CASE(nullpointer16); // #3591
TEST_CASE(nullpointer17); // #3567 TEST_CASE(nullpointer17); // #3567
TEST_CASE(nullpointer18); // #1927 TEST_CASE(nullpointer18); // #1927
TEST_CASE(pointerCheckAndDeRef); // check if pointer is null and then dereference it TEST_CASE(pointerCheckAndDeRef); // check if pointer is null and then dereference it
TEST_CASE(nullConstantDereference); // Dereference NULL constant TEST_CASE(nullConstantDereference); // Dereference NULL constant
TEST_CASE(gcc_statement_expression); // Don't crash TEST_CASE(gcc_statement_expression); // Don't crash
@ -1231,13 +1231,13 @@ private:
check("void f ()\n" check("void f ()\n"
"{\n" "{\n"
" int i=0;\n" " int i=0;\n"
" char *str=NULL;\n" " char *str=NULL;\n"
" while (str[i])\n" " while (str[i])\n"
" {\n" " {\n"
" i++;\n" " i++;\n"
" };\n" " };\n"
"}\n" "}\n"
); );
ASSERT_EQUALS("[test.cpp:5]: (error) Null pointer dereference\n", errout.str()); ASSERT_EQUALS("[test.cpp:5]: (error) Null pointer dereference\n", errout.str());
} }