view test/staticvars.d @ 318:8e570dbe4087 trunk

[svn r339] Add cleanup handling when within an action chain and some more documentation to the eh personality function.
author ChristianK
date Fri, 04 Jul 2008 09:00:49 +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);
}