Debian Codegraph @

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

raw
1 struct RefCounted(T)
2 {
3 struct RefCountedStore
4 {
5 private struct Impl
6 {
7 T _payload;
8 }
9
10 private Impl* _store;
11 }
12 RefCountedStore _refCounted;
13
14 ~this()
15 {
16 import core.stdc.stdlib : free;
17 }
18 }
19
20 struct GroupBy(R)
21 {
22 struct SharedInput
23 {
24 Group unused;
25 }
26
27 struct Group
28 {
29 private RefCounted!SharedInput _allGroups;
30 }
31 }
32
33 void main()
34 {
35 GroupBy!(int[]) g1;
36 }