blob: 369f5dd5cfc093bc0d52f9b1146c4e8900d749d6 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=19122
struct HasDestructor
{
~this()
{
assert(0);
}
this(this)
{
assert(0);
}
}
struct S
{
union
{
int i;
HasDestructor h;
}
}
struct S2
{
union
{
align(1)
{
int i;
HasDestructor h;
}
}
}
void main()
{
{
S s;
s = s;
}
{
S2 s2;
s2 = s2;
}
}