diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index 4e35f68d3..cd566f979 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -5172,12 +5172,17 @@ private: } void vardecl16() { - const char code1[] = "const a::b::g::h::l *x [] = foo(),y [][] = bar();\n"; - ASSERT_EQUALS("const a :: b < c , d ( e ) , f > :: g :: h < i > :: l * x [ ] = foo ( ) ; " - "const a :: b < c , d ( e ) , f > :: g :: h < i > :: l y [ ] [ ] = bar ( ) ;", tokenizeAndStringify(code1)); - const char code2[] = "const ::b::g::h::l *x [] = foo(),y [][] = bar();\n"; - ASSERT_EQUALS("const :: b < c , d ( e ) , f > :: g :: h < i > :: l * x [ ] = foo ( ) ; " - "const :: b < c , d ( e ) , f > :: g :: h < i > :: l y [ ] [ ] = bar ( ) ;", tokenizeAndStringify(code2)); + { + const char code[] = "const a::b::g::h::l *x [] = foo(),y [][] = bar();\n"; + ASSERT_EQUALS("const a :: b < c , d ( e ) , f > :: g :: h < i > :: l * x [ ] = foo ( ) ; " + "const a :: b < c , d ( e ) , f > :: g :: h < i > :: l y [ ] [ ] = bar ( ) ;", tokenizeAndStringify(code)); + } + + { + const char code[] = "const ::b::g::h::l *x [] = foo(),y [][] = bar();\n"; + ASSERT_EQUALS("const :: b < c , d ( e ) , f > :: g :: h < i > :: l * x [ ] = foo ( ) ; " + "const :: b < c , d ( e ) , f > :: g :: h < i > :: l y [ ] [ ] = bar ( ) ;", tokenizeAndStringify(code)); + } } void vardecl17() {