mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Update test.cpp
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
void testFunction(int i1, int i2, int i3, bool b1, bool b2, bool b3, char c1)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
if(b1||b2&&b3) //BAD
|
||||
return;
|
||||
@@ -15,6 +12,10 @@ void testFunction(int i1, int i2, int i3, bool b1, bool b2, bool b3, char c1)
|
||||
return;
|
||||
if((b1||b2)&i1) //GOOD
|
||||
return;
|
||||
if(b1||b2&1) //GOOD
|
||||
return;
|
||||
if(b1&&b2&0) //GOOD
|
||||
return;
|
||||
if(b1||b2|i1) //BAD
|
||||
return;
|
||||
if((b1||b2)|i1) //GOOD
|
||||
|
||||
Reference in New Issue
Block a user