dmd/compiler/test/compilable/sharedopt.d
2022-07-09 18:53:07 +02:00

19 lines
223 B
D

// REQUIRED_ARGS: -O
void _d_critical_term()
{
for (auto p = head; p; p = p.next)
destroyMutex(p.i);
}
shared S* head;
struct S
{
S* next;
int i;
}
void destroyMutex(int i);
struct Mutex { int i; }