Skip to content

Commit 3fae691

Browse files
committed
add test
1 parent 24f2851 commit 3fae691

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ static void combineOperators_andequal()
493493
ASSERT_EQUALS("x &= 2 ;", preprocess("x &= 2;"));
494494
ASSERT_EQUALS("void f ( x & = 2 ) ;", preprocess("void f(x &= 2);"));
495495
ASSERT_EQUALS("f ( x &= 2 ) ;", preprocess("f(x &= 2);"));
496+
ASSERT_EQUALS("f ( ) { return new int ( i &= 1 ) ; }", preprocess("f () { return new int(i &= 1); }"));
496497
}
497498

498499
static void combineOperators_ellipsis()

0 commit comments

Comments
 (0)