File tree 4 files changed +31
-9
lines changed
cpp/ql/test/library-tests/dataflow/dataflow-tests
4 files changed +31
-9
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ postWithInFlow
94
94
| test.cpp:505:35:505:35 | x [inner post update] | PostUpdateNode should not be the target of local flow. |
95
95
| test.cpp:511:5:511:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
96
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. |
97
+ | test.cpp:516:5:516:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
98
+ | test.cpp:516:6:516:6 | p [inner post update] | PostUpdateNode should not be the target of local flow. |
99
+ | test.cpp:522:25:522:25 | x [inner post update] | PostUpdateNode should not be the target of local flow. |
100
+ | test.cpp:526:25:526:25 | y [inner post update] | PostUpdateNode should not be the target of local flow. |
98
101
viableImplInCallContextTooLarge
99
102
uniqueParameterNodeAtPosition
100
103
uniqueParameterNodePosition
Original file line number Diff line number Diff line change @@ -594,9 +594,15 @@ postWithInFlow
594
594
| test.cpp:511:5:511:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
595
595
| test.cpp:511:6:511:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
596
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. |
597
+ | test.cpp:516:5:516:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
598
+ | test.cpp:516:6:516:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
599
+ | test.cpp:516:6:516:6 | p [post update] | PostUpdateNode should not be the target of local flow. |
600
+ | test.cpp:522:24:522:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
601
+ | test.cpp:522:24:522:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
602
+ | test.cpp:522:25:522:25 | x [post update] | PostUpdateNode should not be the target of local flow. |
603
+ | test.cpp:526:24:526:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
604
+ | test.cpp:526:24:526:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
605
+ | test.cpp:526:25:526:25 | y [post update] | PostUpdateNode should not be the target of local flow. |
600
606
| true_upon_entry.cpp:9:7:9:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
601
607
| true_upon_entry.cpp:10:12:10:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
602
608
| 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 @@ -506,12 +506,23 @@ void viaOutparamMissingReturn() {
506
506
sink (x); // $ ast,ir
507
507
}
508
508
509
- void sink_then_source (int * p) {
510
- sink (*p);
511
- *p = source (); // clean
509
+ void sink_then_source_1 (int * p) {
510
+ sink (*p); // clean
511
+ *p = source ();
512
+ }
513
+
514
+ void sink_then_source_2 (int * p, int y) {
515
+ sink (y); // $ SPURIOUS: ast
516
+ *p = source ();
512
517
}
513
518
514
519
void test_sink_then_source () {
520
+ {
515
521
int x;
516
- sink_then_source (&x);
522
+ sink_then_source_1 (&x);
523
+ }
524
+ {
525
+ int y;
526
+ sink_then_source_2 (&y, y);
527
+ }
517
528
}
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 |
37
+ | test.cpp:521:9:521:9 | x | test.cpp:522:25:522:25 | x |
38
+ | test.cpp:525:9:525:9 | y | test.cpp:526:25:526:25 | y |
39
+ | test.cpp:525:9:525:9 | y | test.cpp:526:28:526:28 | y |
You can’t perform that action at this time.
0 commit comments