blob: c8182da8bb149c3fc92c866779c81c34deda4b83 [file] [log] [blame]
// https://bugzilla.gdcproject.org/show_bug.cgi?id=250
// { dg-do run { target hw } }
// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
void main()
{
struct S
{
string data;
}
auto a = S("hello");
auto b = S("hello".dup);
assert(a.data == b.data);
assert(a == b);
assert([a] == [b]);
}