mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
C++: Accept test output change
The new output looks correct, although I'm not sure if it's correct for the right reasons.
This commit is contained in:
@@ -207,7 +207,7 @@ enum my_enum {
|
||||
};
|
||||
|
||||
int myFunction6(enum my_enum e) {
|
||||
if (e < 0) {
|
||||
if (e < 0) { // BAD
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
| PointlessComparison.c:126:12:126:18 | ... >= ... | Comparison is always true because a >= 20. |
|
||||
| PointlessComparison.c:129:12:129:16 | ... > ... | Comparison is always false because a <= 3. |
|
||||
| PointlessComparison.c:197:7:197:11 | ... < ... | Comparison is always false because x >= 0. |
|
||||
| PointlessComparison.c:210:6:210:10 | ... < ... | Comparison is always false because e >= 0. |
|
||||
| PointlessComparison.c:264:12:264:22 | ... >= ... | Comparison is always true because dbl >= 0 and -0 >= - .... |
|
||||
| RegressionTests.cpp:57:7:57:22 | ... <= ... | Comparison is always true because * ... <= 4294967295. |
|
||||
| Templates.cpp:9:10:9:24 | ... <= ... | Comparison is always true because local <= 32767. |
|
||||
|
||||
Reference in New Issue
Block a user