]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/test22510.d
d: Merge upstream dmd 3982604c5, druntime bc58b1e9, phobos 12329adb6.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test22510.d
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 = b;
11 }
12 }
13
14 void main()
15 {
16 auto scoped_s = S(4);
17 auto heap_s = new S(42);
18 }