C++: Add models for 'std::thread' and accept test changes.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-07-10 12:45:20 +01:00
parent 2062a774fc
commit 89cf215ebb
2 changed files with 14 additions and 3 deletions

View File

@@ -8,15 +8,15 @@ struct S {
};
void thread_function_1(S* s) {
sink(s->x); // $ MISSING: ir
sink(s->x); // $ ir
}
void thread_function_2(S s) {
sink(s.x); // $ MISSING: ir
sink(s.x); // $ ir
}
void thread_function_3(S* s, int y) {
sink(s->x); // $ MISSING: ir
sink(s->x); // $ ir
sink(y); // clean
}