gcc/testsuite/gdc.test/compilable/test20842.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=20842 |
| 2 | |
| 3 | struct A |
| 4 | { |
| 5 | int i; |
| 6 | @disable this(ref A); |
| 7 | } |
| 8 | |
| 9 | A a = { i: 123 }; |
| 10 | |
| 11 | struct B |
| 12 | { |
| 13 | int i; |
| 14 | @disable this(); |
| 15 | } |
| 16 | |
| 17 | B b = { i: 123 }; |
| 18 | |
| 19 | union C |
| 20 | { |
| 21 | int i; |
| 22 | @disable this(ref C); |
| 23 | } |
| 24 | |
| 25 | C c = { i: 123 }; |
| 26 | |
| 27 | union D |
| 28 | { |
| 29 | int i; |
| 30 | @disable this(); |
| 31 | } |
| 32 | |
| 33 | D d = { i: 123 }; |