Skip to content

Commit d58c5a5

Browse files
Update testsimplifytokens.cpp
1 parent e843706 commit d58c5a5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/testsimplifytokens.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,7 @@ class TestSimplifyTokens : public TestFixture {
14221422
ASSERT_EQUALS("void f ( ) { }", tok("void f(){{{}}}"));
14231423
ASSERT_EQUALS("void f ( ) { for ( ; ; ) { } }", tok("void f () { for(;;){} }"));
14241424
ASSERT_EQUALS("void f ( ) { { scope_lock lock ; foo ( ) ; } { scope_lock lock ; bar ( ) ; } }", tok("void f () { {scope_lock lock; foo();} {scope_lock lock; bar();} }"));
1425+
ASSERT_EQUALS("std :: map < int , int > m { { } } ;", tok("std::map<int, int> m{ {} };"));
14251426
}
14261427

14271428
void simplifyOverride() { // ticket #5069

0 commit comments

Comments
 (0)