Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=22510
2
3 struct S
4 {
5 int b;
6
7 @disable this(this);
8 this (scope ref inout S) inout
9 {
10 this.b = 0;
11 }
12 }
13
14 void main()
15 {
16 auto scoped_s = S(4);
17 auto heap_s = new S(42);
18 }