| 1 |
// https://issues.dlang.org/show_bug.cgi?id=17494 |
| 2 |
// REQUIRED_ARGS: -revert=dtorfields |
| 3 |
struct S |
| 4 |
{ |
| 5 |
~this() {} |
| 6 |
} |
| 7 |
|
| 8 |
class C |
| 9 |
{ |
| 10 |
S s; |
| 11 |
|
| 12 |
this() nothrow {} |
| 13 |
} |
| 14 |
|
| 15 |
// https://issues.dlang.org/show_bug.cgi?id=17505 |
| 16 |
struct Array |
| 17 |
{ |
| 18 |
int[] _payload; |
| 19 |
~this() |
| 20 |
{ |
| 21 |
import core.stdc.stdlib : free; |
| 22 |
free(_payload.ptr); |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
class Scanner |
| 27 |
{ |
| 28 |
Array arr; |
| 29 |
this() @safe {} |
| 30 |
} |
| 31 |
|
| 32 |
// https://issues.dlang.org/show_bug.cgi?id=17506 |
| 33 |
struct TreeMap |
| 34 |
{ |
| 35 |
this() @disable; |
| 36 |
this(TTree tree) { this.tree = tree; } |
| 37 |
TTree tree; |
| 38 |
} |
| 39 |
|
| 40 |
struct TTree |
| 41 |
{ |
| 42 |
this() @disable; |
| 43 |
this(int foo) {} |
| 44 |
~this() {} |
| 45 |
} |