blob: bac0ce03b5a9166444bd117696246745519c8e12 [file] [log] [blame]
// 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; }