view tests/mini/complex3.d @ 725:3e143b611c1e

Fix double field toObjFile for structs with AttribDecls.
author Christian Kamm <kamm incasoftware de>
date Sat, 25 Oct 2008 22:07:20 +0200
parents fbb1a366cfbc
children
line wrap: on
line source

module complex3;

void main()
{
    cfloat c1 = 1f + 0i;
    cfloat c2 = 0f + 0i;
    c2 += 1f + 0i;
    assert(c1 == c2);
}