view test/staticvars.d @ 226:4145266ff4bd trunk

[svn r242] fixed (I think) arg_pointer inline asm args
author lindquist
date Sat, 07 Jun 2008 19:04:26 +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);
}