mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
Update test.cpp
This commit is contained in:
@@ -57,4 +57,7 @@ void test()
|
||||
if (a+b>c) { b++; a = c-b; } // GOOD
|
||||
if (a+d>c) a = c-d; // GOOD
|
||||
if (a1+b1>c1) a1 = c1-b1; // GOOD
|
||||
|
||||
if (a+b<=c) { /* ... */ } else { a = c-b; } // BAD
|
||||
if (a+b<=c) { return; } a = c-b; // BAD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user