gcc/testsuite/gdc.test/compilable/test8296.d
raw| 1 | struct bar2 |
| 2 | { |
| 3 | int i; |
| 4 | @disable this(); |
| 5 | this(int i) |
| 6 | { |
| 7 | this.i = i; |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | class InnerBar { |
| 12 | bar2 b; |
| 13 | |
| 14 | this() |
| 15 | { |
| 16 | b = bar2(0); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | struct bar1 |
| 21 | { |
| 22 | InnerBar b; |
| 23 | } |
| 24 | |
| 25 | class Foo |
| 26 | { |
| 27 | bar1 m_bar1; |
| 28 | } |
| 29 | |
| 30 | void main(string[] args) |
| 31 | { |
| 32 | auto foo = new Foo(); |
| 33 | } |