view test/structinit2.d @ 129:8096ba7082db trunk

[svn r133] Fixed some problems with inlining not happening :P Fixed problems with certain cases of deeply nested classes/functions.
author lindquist
date Fri, 28 Dec 2007 22:55:24 +0100
parents ee302fe07296
children
line wrap: on
line source

module structinit2;

struct Imp
{
    int i;
    long l;
    float f;
}

void main()
{
    Imp i;
    assert(i.i == 0);
    assert(i.l == 0L);
    assert(i.f !<>= 0.0f);
}