Improve test case TestSimplifyTokens::comma_keyword

This commit is contained in:
Reijo Tomperi 2009-07-27 00:08:18 +03:00
parent 0a7a4a9d55
commit 358aa5be8d
1 changed files with 9 additions and 0 deletions

View File

@ -1072,6 +1072,15 @@ private:
" return 10 ; " " return 10 ; "
"}", sizeof_(code)); "}", sizeof_(code));
} }
{
const char code[] = "void foo()\n"
"{\n"
" int *a = new int[10];\n"
" delete [] a, a = 0;\n"
"}\n";
TODO_ASSERT_EQUALS(" void foo ( ) { int * a ; a = new int [ 10 ] ; delete [ ] a ; a = 0 ; }", sizeof_(code));
}
} }
void remove_comma() void remove_comma()