From ee86aa7b4065b28d51ee4ce8a5b518eeca9507d0 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 29 Jan 2020 18:16:07 +0300 Subject: [PATCH] Improve test coverage for simplification of arithmetic operations --- test/testsimplifytokens.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 4327081f3..f7def66c6 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -3460,6 +3460,7 @@ private: ASSERT_EQUALS("int a [ 8 ] ;", tok("int a[5+6/2];")); ASSERT_EQUALS("int a [ 4 ] ;", tok("int a[(10)-1-5];")); ASSERT_EQUALS("int a [ i - 9 ] ;", tok("int a[i - 10 + 1];")); + ASSERT_EQUALS("int a [ i - 11 ] ;", tok("int a[i - 10 - 1];")); ASSERT_EQUALS("x = y ;", tok("x=0+y+0-0;")); ASSERT_EQUALS("x = 0 ;", tok("x=0*y;"));