view test/staticvars.d @ 194:8ee2c46ff938 trunk

[svn r210] Fixed: last commit was broken.
author lindquist
date Mon, 12 May 2008 18:48:09 +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);
}