File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
cpp/ql/test/query-tests/jsf/4.13 Functions/AV Rule 114 Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11| test.c:8:5:8:14 | declaration | Function f2 should return a value of type int but does not return a value here |
22| test.c:25:9:25:14 | ExprStmt | Function f4 should return a value of type int but does not return a value here |
33| test.c:39:9:39:14 | ExprStmt | Function f6 should return a value of type int but does not return a value here |
4+ | test.c:95:2:95:20 | if (...) ... | Function f13_func should return a value of type int but does not return a value here |
5+ | test.c:95:2:95:20 | if (...) ... | Function f13_func should return a value of type void but does not return a value here |
46| test.cpp:16:1:18:1 | { ... } | Function g2 should return a value of type MyValue but does not return a value here |
57| test.cpp:48:2:48:26 | if (...) ... | Function g7 should return a value of type MyValue but does not return a value here |
68| test.cpp:74:1:76:1 | { ... } | Function g10 should return a value of type second but does not return a value here |
Original file line number Diff line number Diff line change @@ -84,3 +84,13 @@ int f12(int x)
8484 // ...
8585 }
8686}
87+
88+ void f13 ()
89+ {
90+ f13_func (); // implicitly declared here
91+ }
92+
93+ void f13_func (int x )
94+ {
95+ if (x < 10 ) return ; // GOOD [FALSE POSITIVE]
96+ }
You can’t perform that action at this time.
0 commit comments