diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index f7def66c6..29161a4dd 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -3452,6 +3452,11 @@ private: } ASSERT_EQUALS("a [ 4 ] ;", tok("a[1+3|4];")); + ASSERT_EQUALS("a [ 4U ] ;", tok("a[1+3|4U];")); + ASSERT_EQUALS("a [ 3 ] ;", tok("a[1+2&3];")); + ASSERT_EQUALS("a [ 3U ] ;", tok("a[1+2&3U];")); + ASSERT_EQUALS("a [ 5 ] ;", tok("a[1-0^4];")); + ASSERT_EQUALS("a [ 5U ] ;", tok("a[1-0^4U];")); ASSERT_EQUALS("x = 1 + 2 * y ;", tok("x=1+2*y;")); ASSERT_EQUALS("x = 7 ;", tok("x=1+2*3;"));