blob: 58cfbe34d6089032d6912a93a24df269c4524bdc [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=21441
int dtorCount;
int postblitCount;
struct S
{
this(this) { ++postblitCount; }
~this() { ++dtorCount; }
}
enum E : S { _ = S.init }
void main()
{
E e;
typeid(e).destroy(&e);
assert(dtorCount == 1);
typeid(e).postblit(&e);
assert(postblitCount == 1);
}