summaryrefslogtreecommitdiff
path: root/libphobos/testsuite/libphobos.typeinfo/struct-align.d
blob: 54eaaa6ff5aed94132bdf83617ece4257e19e1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module structalign;

void main ()
{
    struct K { int *a; }
    K k;
    auto ti = typeid (k);

    assert (ti.flags () == 1);

    auto ti2 = typeid (k.a);
    assert (ti.talign () == ti2.talign ());
}