Added todo testcase for false positive: Comparison of boolean with expression with an integer.
This commit is contained in:
parent
677257f569
commit
5a158987ce
|
@ -359,6 +359,11 @@ private:
|
|||
" }\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
check("void f(int x, int y) {\n"
|
||||
" return (!y == !x);\n"
|
||||
"}");
|
||||
TODO_ASSERT_EQUALS("","[test.cpp:2]: (warning) Comparison of a boolean expression with an integer.\n", errout.str());
|
||||
}
|
||||
|
||||
void comparisonOfBoolExpressionWithInt3() {
|
||||
|
|
Loading…
Reference in New Issue