[svn r133] Fixed some problems with inlining not happening :P

Fixed problems with certain cases of deeply nested classes/functions.
This commit is contained in:
Tomas Lindquist Olsen
2007-12-28 22:55:24 +01:00
parent f420bc1265
commit 5eb88f9e80
17 changed files with 263 additions and 59 deletions

30
test/nested8.d Normal file
View File

@@ -0,0 +1,30 @@
module nested8;
void main()
{
int i = 1;
void func()
{
printf("func()\n");
i++;
void func2()
{
printf(" func2()\n");
int j = i + 1;
void func3()
{
printf(" func3()\n");
j++;
printf(" done = %d\n", j);
}
func3();
i = j;
printf(" done = %d\n", j);
}
func2();
printf("done\n");
}
func();
printf("i == %d\n", i);
assert(i == 4);
}