Debian Codegraph @

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

raw
1 struct MaybeShared
2 {
3 this(this T)()
4 {
5
6 }
7
8 ~this()
9 {
10
11 }
12 }
13
14 void main() {
15 {
16 auto aboutToDie = MaybeShared();
17 }
18 {
19 auto aboutToDie = shared MaybeShared();
20 }
21 }