view test/staticvars.d @ 208:086e1aa99557 trunk

[svn r224] clean up temporaries after dstress has run
author ChristianK
date Tue, 13 May 2008 21:41:25 +0200
parents 99737f94abfb
children
line wrap: on
line source

module staticvars;

int func()
{
    static int i;
    return i++;
}

void main()
{
    assert(func() == 0);
    assert(func() == 1);
}