mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
46 lines
464 B
D
46 lines
464 B
D
// 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;
|
|
}
|
|
}
|