File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
cpp/ql/test/query-tests/Likely Bugs/Arithmetic/PointlessComparison Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 5050| PointlessComparison.cpp:43:6:43:29 | ... >= ... | Comparison is always true because ... >> ... >= 140737488355327.5. |
5151| PointlessComparison.cpp:44:6:44:28 | ... >= ... | Comparison is always true because ... >> ... >= 140737488355327.5. |
5252| RegressionTests.cpp:57:7:57:22 | ... <= ... | Comparison is always true because * ... <= 4294967295. |
53+ | RegressionTests.cpp:165:9:165:33 | ... > ... | Comparison is always true because ... * ... >= 64. |
5354| Templates.cpp:9:10:9:24 | ... <= ... | Comparison is always true because local <= 32767. |
Original file line number Diff line number Diff line change @@ -155,3 +155,12 @@ struct someType {
155155};
156156
157157someType<42 >::b someType_x;
158+
159+ struct A_Struct {
160+ int x;
161+ int y;
162+ };
163+
164+ enum E {
165+ E_e = sizeof (A_Struct) * 8 > 50 // GOOD [FALSE POSITIVE]
166+ };
You can’t perform that action at this time.
0 commit comments