Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow

This commit is contained in:
Mathias Vorreiter Pedersen
2023-01-23 15:49:36 +00:00
942 changed files with 231363 additions and 11593 deletions

View File

@@ -530,4 +530,14 @@ void test_set_through_const_pointer(int *e)
{
set_through_const_pointer(source(), &e);
sink(*e); // $ ir MISSING: ast
}
}
void sink_then_source(int* p) {
sink(*p);
*p = source(); // $ SPURIOUS: ir=537:10 ir=541:9
}
void test_sink_then_source() {
int x;
sink_then_source(&x);
}