☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
sharedopt.d
☽
☼
gcc/testsuite/gdc.test/compilable/sharedopt.d
code
plain
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; }