Files
ldc/test/nested7.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

33 lines
361 B
D

module nested7;
void main()
{
int i;
i = 52;
printf("i = %d\n", i);
void func()
{
i++;
void func2()
{
i++;
void func3()
{
i++;
}
func3();
}
func2();
}
func();
printf("i = %d\n", i);
assert(i == 55);
}