]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/sharedopt.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / sharedopt.d
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; }