Skip to content

Commit 24d1cac

Browse files
committed
C++: Accept test changes.
1 parent ee7b137 commit 24d1cac

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

cpp/ql/test/library-tests/dataflow/dataflow-tests/dataflow-ir-consistency.expected

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ uniqueType
44
uniqueNodeLocation
55
missingLocation
66
uniqueNodeToString
7+
| test.cpp:632:6:632:24 | Use of x indirection | Node should have one toString but has 2. |
8+
| test.cpp:632:6:632:24 | Use of x#init indirection | Node should have one toString but has 2. |
9+
| test.cpp:637:6:637:24 | Use of x indirection | Node should have one toString but has 2. |
10+
| test.cpp:637:6:637:24 | Use of x#init indirection | Node should have one toString but has 2. |
11+
| test.cpp:663:6:663:24 | Use of s indirection | Node should have one toString but has 2. |
12+
| test.cpp:663:6:663:24 | Use of s#init indirection | Node should have one toString but has 2. |
13+
| test.cpp:669:6:669:24 | Use of s indirection | Node should have one toString but has 2. |
14+
| test.cpp:669:6:669:24 | Use of s#init indirection | Node should have one toString but has 2. |
715
missingToString
816
parameterCallable
917
localFlowIsLocal

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ void test_static_local_2() {
642642

643643
void test_static_local_3() {
644644
static int x = 0;
645-
sink(x); // $ MISSING: ast, ir
645+
sink(x); // $ ir MISSING: ast
646646
x = source();
647647
}
648648

@@ -655,15 +655,15 @@ void test_static_local_4() {
655655

656656
void test_static_local_5() {
657657
static int x = 0;
658-
sink(x); // $ MISSING: ast,ir
658+
sink(x); // $ ir MISSING: ast
659659
x = 0;
660660
x = source();
661661
}
662662

663663
void test_static_local_6() {
664664
static int s = source();
665665
static int* ptr_to_s = &s;
666-
sink(*ptr_to_s); // $ MISSING: ast,ir
666+
sink(*ptr_to_s); // $ ir MISSING: ast
667667
}
668668

669669
void test_static_local_7() {
@@ -676,7 +676,7 @@ void test_static_local_7() {
676676
void test_static_local_8() {
677677
static int s;
678678
static int* ptr_to_s = &s;
679-
sink(*ptr_to_s); // $ MISSING: ast,ir
679+
sink(*ptr_to_s); // $ ir MISSING: ast
680680

681681
s = source();
682682
}

0 commit comments

Comments
 (0)