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

@@ -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();
}