tree-object-size: use size_for_offset in more cases
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test22254.d
blob94f6596a19d30b36a01571dfc1c0917defcbf6b9
1 // https://issues.dlang.org/show_bug.cgi?id=22254
3 struct Template(T) { T t; }
5 Template!Bar a;
6 Template!Bar b;
8 immutable struct Bar { }
10 static assert(is(typeof(a) == typeof(b)));
11 static assert(is(typeof(a) == Template!(immutable Bar)));
13 Template!C c1;
14 Template!C c2;
16 immutable class C { }
18 static assert(is(typeof(c1) == typeof(c2)));
19 static assert(is(typeof(c1) == Template!(immutable C)));