mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
52 lines
811 B
D
52 lines
811 B
D
// REQUIRED_ARGS: -preview=dtorfields
|
|
//
|
|
// https://issues.dlang.org/show_bug.cgi?id=21709
|
|
// PERMUTE_ARGS: -betterC
|
|
|
|
/******************************************
|
|
* https://issues.dlang.org/show_bug.cgi?id=20934
|
|
*/
|
|
struct HasDtor
|
|
{
|
|
~this() {}
|
|
}
|
|
|
|
struct Disable
|
|
{
|
|
HasDtor member;
|
|
this() @disable;
|
|
}
|
|
|
|
extern(C++) class Extern
|
|
{
|
|
HasDtor member;
|
|
this();
|
|
}
|
|
|
|
/******************************************
|
|
* https://issues.dlang.org/show_bug.cgi?id=21213
|
|
*/
|
|
class Parent
|
|
{
|
|
this() nothrow pure @nogc @safe {}
|
|
}
|
|
|
|
class Child : Parent
|
|
{
|
|
HasDtor member;
|
|
}
|
|
|
|
/******************************************
|
|
* https://issues.dlang.org/show_bug.cgi?id=21225
|
|
*/
|
|
|
|
struct NothrowConstructed
|
|
{
|
|
~this() {}
|
|
}
|
|
|
|
struct NothrowConstructor
|
|
{
|
|
NothrowConstructed member;
|
|
this(int) pure nothrow {}
|
|
}
|