Modified the or operator in testbool.cpp source code by zhichingteo · Pull Request #1 · 0x20e/cppcheck · GitHub
Skip to content

Modified the or operator in testbool.cpp source code#1

Open
zhichingteo wants to merge 8722 commits into
0x20e:masterfrom
zhichingteo:master
Open

Modified the or operator in testbool.cpp source code#1
zhichingteo wants to merge 8722 commits into
0x20e:masterfrom
zhichingteo:master

Conversation

@zhichingteo

@zhichingteo zhichingteo commented Aug 1, 2018

Copy link
Copy Markdown

ASSERT_EQUALS("", errout.str());

    check("void f(int x) {\n"
          "    if ((x || 0x0f)==6)\n"  //the or || operator was not complete
          "        a++;\n"
          "}\n"
         );
    ASSERT_EQUALS("", errout.str());

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.