| 1 |
// https://issues.dlang.org/show_bug.cgi?id=20365 |
| 2 |
|
| 3 |
string result = ""; |
| 4 |
|
| 5 |
struct S |
| 6 |
{ |
| 7 |
long[3] a; |
| 8 |
this(ref typeof(this)) { result ~= "C"; } |
| 9 |
} |
| 10 |
|
| 11 |
void fun() |
| 12 |
{ |
| 13 |
S[4] a; |
| 14 |
auto b = a; |
| 15 |
} |
| 16 |
|
| 17 |
void main() |
| 18 |
{ |
| 19 |
fun(); |
| 20 |
assert(result == "CCCC"); |
| 21 |
} |