File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
cpp/ql/test/library-tests/sideEffects/functions Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ // semmle-extractor-options: --expect_errors
2+
3+ void functionBeforeError ()
4+ {
5+ }
6+
7+ void functionWithError1 ()
8+ {
9+ aaaaaaaaaa (); // error
10+ }
11+
12+ void functionWithError2 ()
13+ {
14+ int i = aaaaaaaaaa (); // error
15+ }
16+
17+ void functionAfterError ()
18+ {
19+ }
Original file line number Diff line number Diff line change 4343| cpp.cpp:87:5:87:26 | functionAccessesStatic | int | false |
4444| cpp.cpp:93:6:93:14 | increment | int & -> void | false |
4545| cpp.cpp:97:6:97:16 | doIncrement | void | false |
46+ | error.cpp:3:6:3:24 | functionBeforeError | void | true |
47+ | error.cpp:7:6:7:23 | functionWithError1 | void | false |
48+ | error.cpp:12:6:12:23 | functionWithError2 | void | false |
49+ | error.cpp:17:6:17:23 | functionAfterError | void | true |
4650| file://:0:0:0:0 | operator= | __va_list_tag & | false |
4751| file://:0:0:0:0 | operator= | __va_list_tag & | false |
4852| sideEffects.c:4:5:4:6 | f1 | int | true |
You can’t perform that action at this time.
0 commit comments