C++: Accept test changes.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-04-28 10:25:07 +01:00
parent ee7b137c24
commit 24d1cac9d7
2 changed files with 12 additions and 4 deletions

View File

@@ -4,6 +4,14 @@ uniqueType
uniqueNodeLocation
missingLocation
uniqueNodeToString
| test.cpp:632:6:632:24 | Use of x indirection | Node should have one toString but has 2. |
| test.cpp:632:6:632:24 | Use of x#init indirection | Node should have one toString but has 2. |
| test.cpp:637:6:637:24 | Use of x indirection | Node should have one toString but has 2. |
| test.cpp:637:6:637:24 | Use of x#init indirection | Node should have one toString but has 2. |
| test.cpp:663:6:663:24 | Use of s indirection | Node should have one toString but has 2. |
| test.cpp:663:6:663:24 | Use of s#init indirection | Node should have one toString but has 2. |
| test.cpp:669:6:669:24 | Use of s indirection | Node should have one toString but has 2. |
| test.cpp:669:6:669:24 | Use of s#init indirection | Node should have one toString but has 2. |
missingToString
parameterCallable
localFlowIsLocal

View File

@@ -642,7 +642,7 @@ void test_static_local_2() {
void test_static_local_3() {
static int x = 0;
sink(x); // $ MISSING: ast, ir
sink(x); // $ ir MISSING: ast
x = source();
}
@@ -655,7 +655,7 @@ void test_static_local_4() {
void test_static_local_5() {
static int x = 0;
sink(x); // $ MISSING: ast,ir
sink(x); // $ ir MISSING: ast
x = 0;
x = source();
}
@@ -663,7 +663,7 @@ void test_static_local_5() {
void test_static_local_6() {
static int s = source();
static int* ptr_to_s = &s;
sink(*ptr_to_s); // $ MISSING: ast,ir
sink(*ptr_to_s); // $ ir MISSING: ast
}
void test_static_local_7() {
@@ -676,7 +676,7 @@ void test_static_local_7() {
void test_static_local_8() {
static int s;
static int* ptr_to_s = &s;
sink(*ptr_to_s); // $ MISSING: ast,ir
sink(*ptr_to_s); // $ ir MISSING: ast
s = source();
}