parent
5e08784b5c
commit
8233edcbf2
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue