summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/test17885.d
blob: a6e521b03a31b0cb79e0c495b3d951ec23515f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
module test17885;

struct T { ulong a, b; }
T f() { return T(); }

void main()
{
    int[T] set = [f(): 0];
    set.remove(f());
    assert(f() !in set);
}