view tests/mini/foreach6.d @ 1084:56e56b3b9bb8

Fix 32bit version of "jle short Label;" for 'short' or 'long'.
author notroot@ubuntu.localdomain
date Tue, 10 Mar 2009 09:13:13 -0400
parents 30b42a283c8e
children
line wrap: on
line source

module mini.foreach6;

struct S
{
    long l;
    float f;
}

void main()
{
    S[4] arr = void;
    foreach(i,v;arr) {
        v = S(i, i*2.5);
    }
}