blob: c5b7d60dab619f7913ba04ce17b5a61df67688e3 [file] [log] [blame]
// https://bugzilla.gdcproject.org/show_bug.cgi?id=250
// { dg-do run }
// { 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]);
}