view test/structinit2.d @ 17:6c6cd097bcdf trunk

[svn r21] * Fixed local instances of imported templates
author lindquist
date Wed, 03 Oct 2007 06:14:41 +0200
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);
}