diff --git a/test/testother.cpp b/test/testother.cpp index 9d00decbd..6c1ce6060 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -2789,6 +2789,12 @@ private: { check("sizeof(a+b)"); ASSERT_EQUALS("[test.cpp:1]: (style) Found calculation inside sizeof()\n", errout.str()); + + check("sizeof(-a)"); + ASSERT_EQUALS("", errout.str()); + + check("sizeof(void * const)"); + ASSERT_EQUALS("", errout.str()); } void emptyCatchBlock()