1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=179
2 // { dg-do run }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4 
5 import core.stdc.stdio;
6 
7 struct S179a
8 {
9     @disable this(this);
10 }
11 
12 struct S179b
13 {
14     S179a s1;
connect()15     void connect() { printf("this=%p\n", &this); }
16 }
17 
18 class C179
19 {
20     private S179b s2;
value()21     ref S179b value() @property
22     {
23         printf("this=%p\n", &s2);
24         return s2;
25     }
26 }
27 
main()28 void main()
29 {
30     C179 a = new C179;
31     a.value.connect();
32 }
33