Skip to content

Commit be9d33c

Browse files
Update testother.cpp
1 parent 8bb772d commit be9d33c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎test/testother.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14055,6 +14055,12 @@ class TestOther : public TestFixture {
1405514055
" g(b);\n"
1405614056
"}\n");
1405714057
ASSERT_EQUALS("", errout_str());
14058+
14059+
check("void g(bool);\n" // #14303
14060+
"void f() {\n"
14061+
" g(g);\n"
14062+
"}\n");
14063+
ASSERT_EQUALS("[test.cpp:3:7]: (style) Pointer expression 'g' converted to bool is always true. [knownPointerToBool]\n", errout_str());
1405814064
}
1405914065

1406014066
void iterateByValue() {

0 commit comments

Comments
 (0)