| 1 |
// REQUIRED_ARGS: -preview=dtorfields |
| 2 |
// |
| 3 |
// https://issues.dlang.org/show_bug.cgi?id=21709 |
| 4 |
// PERMUTE_ARGS: -betterC |
| 5 |
|
| 6 |
/****************************************** |
| 7 |
* https://issues.dlang.org/show_bug.cgi?id=20934 |
| 8 |
*/ |
| 9 |
struct HasDtor |
| 10 |
{ |
| 11 |
~this() {} |
| 12 |
} |
| 13 |
|
| 14 |
struct Disable |
| 15 |
{ |
| 16 |
HasDtor member; |
| 17 |
this() @disable; |
| 18 |
} |
| 19 |
|
| 20 |
extern(C++) class Extern |
| 21 |
{ |
| 22 |
HasDtor member; |
| 23 |
this(); |
| 24 |
} |
| 25 |
|
| 26 |
/****************************************** |
| 27 |
* https://issues.dlang.org/show_bug.cgi?id=21213 |
| 28 |
*/ |
| 29 |
class Parent |
| 30 |
{ |
| 31 |
this() nothrow pure @nogc @safe {} |
| 32 |
} |
| 33 |
|
| 34 |
class Child : Parent |
| 35 |
{ |
| 36 |
HasDtor member; |
| 37 |
} |
| 38 |
|
| 39 |
/****************************************** |
| 40 |
* https://issues.dlang.org/show_bug.cgi?id=21225 |
| 41 |
*/ |
| 42 |
|
| 43 |
struct NothrowConstructed |
| 44 |
{ |
| 45 |
~this() {} |
| 46 |
} |
| 47 |
|
| 48 |
struct NothrowConstructor |
| 49 |
{ |
| 50 |
NothrowConstructed member; |
| 51 |
this(int) pure nothrow {} |
| 52 |
} |