Mercurial > projects > ldc
view test/staticvars.d @ 266:5d2f4814bb2e trunk
[svn r287] update to test statistics generation
author | ChristianK |
---|---|
date | Sun, 15 Jun 2008 12:58:48 +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); }