view tests/mini/structinit5.d @ 1118:dde9dbae052a

Make this test a bit more meaningful
author Frits van Bommel <fvbommel wxs.nl>
date Sat, 14 Mar 2009 22:29:31 +0100
parents 545f54041d91
children
line wrap: on
line source

struct Vertex {
    uint[1] c;
}

void main() {
    uint[1] c = 0xffffffff;

    auto v = Vertex(c);

    assert(v.c[0] == 0xffffffff);  // fails in LDC
}