Files
ldc/test/nested8.d
Tomas Lindquist Olsen 5eb88f9e80 [svn r133] Fixed some problems with inlining not happening :P
Fixed problems with certain cases of deeply nested classes/functions.
2007-12-28 22:55:24 +01:00

31 lines
558 B
D

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);
}