Skip to content

Commit 386580f

Browse files
committed
C++: Accept test changes.
1 parent b2002a9 commit 386580f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cpp/ql/test/library-tests/dataflow/dataflow-tests/test-source-sink.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ irFlow
310310
| test.cpp:1021:18:1021:32 | *call to indirect_source | test.cpp:1027:19:1027:28 | *translated |
311311
| test.cpp:1021:18:1021:32 | *call to indirect_source | test.cpp:1031:19:1031:28 | *translated |
312312
| test.cpp:1045:14:1045:19 | call to source | test.cpp:1046:7:1046:10 | * ... |
313-
| test.cpp:1061:15:1061:38 | *call to indirect_source | test.cpp:1057:19:1057:21 | ** ... |
314-
| test.cpp:1072:8:1072:13 | call to source | test.cpp:1074:8:1074:9 | * ... |
315313
| true_upon_entry.cpp:9:11:9:16 | call to source | true_upon_entry.cpp:13:8:13:8 | x |
316314
| true_upon_entry.cpp:17:11:17:16 | call to source | true_upon_entry.cpp:21:8:21:8 | x |
317315
| true_upon_entry.cpp:27:9:27:14 | call to source | true_upon_entry.cpp:29:8:29:8 | x |

cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ void flow_out_of_address_with_local_flow() {
10541054

10551055
static void static_func_that_reassigns_pointer_before_sink(char** pp) { // $ ast-def=pp ir-def=*pp ir-def=**pp
10561056
*pp = "";
1057-
indirect_sink(*pp); // $ SPURIOUS: ir
1057+
indirect_sink(*pp); // clean
10581058
}
10591059

10601060
void test_static_func_that_reassigns_pointer_before_sink() {
@@ -1071,5 +1071,5 @@ void single_object_in_both_cases(bool b, int x, int y) {
10711071
}
10721072
*p = source();
10731073
*p = 0;
1074-
sink(*p); // $ SPURIOUS: ir
1074+
sink(*p); // clean
10751075
}

0 commit comments

Comments
 (0)