File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
cpp/ql/test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ postWithInFlow
92
92
| test.cpp:499:3:499:4 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
93
93
| test.cpp:499:4:499:4 | p [inner post update] | PostUpdateNode should not be the target of local flow. |
94
94
| test.cpp:505:35:505:35 | x [inner post update] | PostUpdateNode should not be the target of local flow. |
95
+ | test.cpp:511:5:511:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
96
+ | test.cpp:511:6:511:6 | p [inner post update] | PostUpdateNode should not be the target of local flow. |
97
+ | test.cpp:516:23:516:23 | x [inner post update] | PostUpdateNode should not be the target of local flow. |
95
98
viableImplInCallContextTooLarge
96
99
uniqueParameterNodeAtPosition
97
100
uniqueParameterNodePosition
Original file line number Diff line number Diff line change @@ -591,6 +591,12 @@ postWithInFlow
591
591
| test.cpp:505:34:505:35 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
592
592
| test.cpp:505:34:505:35 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
593
593
| test.cpp:505:35:505:35 | x [post update] | PostUpdateNode should not be the target of local flow. |
594
+ | test.cpp:511:5:511:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
595
+ | test.cpp:511:6:511:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
596
+ | test.cpp:511:6:511:6 | p [post update] | PostUpdateNode should not be the target of local flow. |
597
+ | test.cpp:516:22:516:23 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
598
+ | test.cpp:516:22:516:23 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
599
+ | test.cpp:516:23:516:23 | x [post update] | PostUpdateNode should not be the target of local flow. |
594
600
| true_upon_entry.cpp:9:7:9:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
595
601
| true_upon_entry.cpp:10:12:10:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
596
602
| true_upon_entry.cpp:10:27:10:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
Original file line number Diff line number Diff line change @@ -505,3 +505,13 @@ void viaOutparamMissingReturn() {
505
505
intOutparamSourceMissingReturn (&x);
506
506
sink (x); // $ ast,ir
507
507
}
508
+
509
+ void sink_then_source (int * p) {
510
+ sink (*p);
511
+ *p = source (); // clean
512
+ }
513
+
514
+ void test_sink_then_source () {
515
+ int x;
516
+ sink_then_source (&x);
517
+ }
Original file line number Diff line number Diff line change 34
34
| test.cpp:441:7:441:11 | local | test.cpp:442:18:442:22 | local |
35
35
| test.cpp:441:7:441:11 | local | test.cpp:443:8:443:12 | local |
36
36
| test.cpp:441:7:441:11 | local | test.cpp:444:9:444:13 | local |
37
+ | test.cpp:515:9:515:9 | x | test.cpp:516:23:516:23 | x |
You can’t perform that action at this time.
0 commit comments