C++: Accept test changes.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-01-27 14:31:15 +00:00
parent 9de8d5c501
commit 1b45c5f96a
3 changed files with 3 additions and 8 deletions

View File

@@ -533,12 +533,12 @@ void test_set_through_const_pointer(int *e)
}
void sink_then_source_1(int* p) {
sink(*p); // $ SPURIOUS: ir=537:10 ir=547:9
sink(*p); // $ ir // Flow from the unitialized x to the dereference.
*p = source();
}
void sink_then_source_2(int* p, int y) {
sink(y); // $ SPURIOUS: ast ir=542:10 ir=551:9
sink(y); // $ SPURIOUS: ast ir
*p = source();
}