Added todo testcase for false positive: Comparison of boolean with expression with an integer.

This commit is contained in:
orbitcowboy 2013-09-30 11:21:28 -07:00
parent 677257f569
commit 5a158987ce
1 changed files with 5 additions and 0 deletions

View File

@ -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() {