Debian Codegraph @

libphobos/testsuite/libphobos.typeinfo/struct-align.d

raw
1 module structalign;
2
3 void main ()
4 {
5 struct K { int *a; }
6 K k;
7 auto ti = typeid (k);
8
9 assert (ti.flags () == 1);
10
11 auto ti2 = typeid (k.a);
12 assert (ti.talign () == ti2.talign ());
13 }