view tests/mini/structinit5.d @ 1111:0f8aeb31678c

Fix 32bit "+2" typo for Outbuffer::reserve
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Fri, 13 Mar 2009 07:17:29 -0600
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
}