view test/structinit2.d @ 300:7b1040c76dd2 trunk

[svn r321] Fix bug in argument remapping functions.
author ChristianK
date Tue, 24 Jun 2008 22:27:55 +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);
}