Skip to content

Commit 589b497

Browse files
committed
Improve test coverage for simplification of bitwise operations
1 parent d82da98 commit 589b497

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/testsimplifytokens.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,6 +3452,11 @@ class TestSimplifyTokens : public TestFixture {
34523452
}
34533453

34543454
ASSERT_EQUALS("a [ 4 ] ;", tok("a[1+3|4];"));
3455+
ASSERT_EQUALS("a [ 4U ] ;", tok("a[1+3|4U];"));
3456+
ASSERT_EQUALS("a [ 3 ] ;", tok("a[1+2&3];"));
3457+
ASSERT_EQUALS("a [ 3U ] ;", tok("a[1+2&3U];"));
3458+
ASSERT_EQUALS("a [ 5 ] ;", tok("a[1-0^4];"));
3459+
ASSERT_EQUALS("a [ 5U ] ;", tok("a[1-0^4U];"));
34553460

34563461
ASSERT_EQUALS("x = 1 + 2 * y ;", tok("x=1+2*y;"));
34573462
ASSERT_EQUALS("x = 7 ;", tok("x=1+2*3;"));

0 commit comments

Comments
 (0)