Enable another zeroDivCond test which got fixed recently
This commit is contained in:
parent
4c2fd21d4e
commit
b795d30db6
|
@ -580,9 +580,8 @@ private:
|
||||||
" f1(123,y);\n"
|
" f1(123,y);\n"
|
||||||
" if (y>0){}\n"
|
" if (y>0){}\n"
|
||||||
"}");
|
"}");
|
||||||
TODO_ASSERT_EQUALS(
|
ASSERT_EQUALS(
|
||||||
"[test.cpp:4] -> [test.cpp:1]: (warning) Either the condition 'y>0' is redundant or there is division by zero at line 1.\n",
|
"[test.cpp:4] -> [test.cpp:1]: (warning) Either the condition 'y>0' is redundant or there is division by zero at line 1.\n",
|
||||||
"",
|
|
||||||
errout.str());
|
errout.str());
|
||||||
|
|
||||||
// avoid false positives when variable is changed after division
|
// avoid false positives when variable is changed after division
|
||||||
|
|
Loading…
Reference in New Issue