[svn r30] * Fixed static function-local variables.

* Fixed CondExp - bool ? true : false
This commit is contained in:
Tomas Lindquist Olsen
2007-10-04 10:57:26 +02:00
parent 9fd43121db
commit c357c96471
3 changed files with 35 additions and 16 deletions

13
test/staticvars.d Normal file
View File

@@ -0,0 +1,13 @@
module staticvars;
int func()
{
static int i;
return i++;
}
void main()
{
assert(func() == 0);
assert(func() == 1);
}