☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
libphobos
/
testsuite
/
libphobos.typeinfo
/
struct-align.d
☽
☼
libphobos/testsuite/libphobos.typeinfo/struct-align.d
code
plain
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
}