astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2014-10-10 08:15:46 +02:00
parent 5e08784b5c
commit 8233edcbf2
1 changed files with 4 additions and 4 deletions

View File

@ -3595,13 +3595,13 @@ private:
void simplify_constants6() { // Ticket #5625 void simplify_constants6() { // Ticket #5625
const char code[] = "template < class T > struct foo ;\n" const char code[] = "template < class T > struct foo ;\n"
"void bar ( ) {\n" "void bar ( ) {\n"
"foo < 1 ? 0 ? 1 : 6 : 2 > x ;\n" "foo < 1 ? 0 ? 1 : 6 : 2 > x ;\n"
"foo < 1 ? 0 : 2 > y ;\n" "foo < 1 ? 0 : 2 > y ;\n"
"}"; "}";
const char exp [] = "template < class T > struct foo ;\n" const char exp [] = "template < class T > struct foo ;\n"
"void bar ( ) {\n" "void bar ( ) {\n"
"foo < 6 > x ;\n" "foo < 6 > x ;\n"
"foo < 0 > y ;\n" "foo < 0 > y ;\n"
"}"; "}";
ASSERT_EQUALS(exp, tokenizeAndStringify(code, true)); ASSERT_EQUALS(exp, tokenizeAndStringify(code, true));
} }