Debian Codegraph @

gcc/testsuite/gdc.test/compilable/sharedopt.d

raw
1 // REQUIRED_ARGS: -O
2
3 void _d_critical_term()
4 {
5 for (auto p = head; p; p = p.next)
6 destroyMutex(p.i);
7 }
8
9 shared S* head;
10
11 struct S
12 {
13 S* next;
14 int i;
15 }
16
17 void destroyMutex(int i);
18
19 struct Mutex { int i; }