Visitar URL original
Correct actual result string · ProgramMax/cppcheck@4fe61a6 · GitHub
Skip to content

Commit 4fe61a6

Browse files
committed
Correct actual result string
1 parent 8b433fa commit 4fe61a6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎test/testsimplifytemplate.cpp‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,10 +1027,7 @@ class TestSimplifyTemplate : public TestFixture {
10271027
"{\n"
10281028
" enum {value = !type_equal<T, typename Unconst<T>::type>::value };\n"
10291029
"};";
1030-
const char expected1[]="template < class T > struct Unconst { } ; template < class T > struct type_equal<T,T> { } ;"
1031-
"template < class T > struct template_is_const { } ; struct type_equal<T,T> { } ; struct Unconst<constT*const> { } ;"
1032-
"struct Unconst<constT&*const> { } ; struct Unconst<T*const*const> { } ; struct Unconst<T*const> { } ; struct Unconst<T*const> { } ;"
1033-
"struct Unconst<T*const> { } ; struct Unconst<constT&><};template<T> { } ; struct Unconst<constT><};template<T> { } ;";
1030+
const char expected1[]="template < class T > struct Unconst { } ; template < class T > struct type_equal<T,T> { } ; template < class T > struct template_is_const { } ; struct type_equal<T,T> { } ; struct Unconst<constT*const> { } ; struct Unconst<constT&*const> { } ; struct Unconst<T*const*const> { } ; struct Unconst<T*const> { } ; struct Unconst<T*const> { } ; struct Unconst<T*const> { } ; struct Unconst<constT&><};template<T> { } ; struct Unconst<constT><};template<T> { } ;";
10341031
ASSERT_EQUALS(expected1, tok(code1));
10351032
}
10361033

0 commit comments

Comments
 (0)