[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

20
test/nested10.d Normal file
View File

@@ -0,0 +1,20 @@
module nested10;
void main()
{
int j = 3;
void F()
{
int i = j;
printf("F: i = %d, j = %d\n", i, j);
void G()
{
printf("G: i = %d, j = %d\n", i, j);
j += i;
}
G();
}
F();
printf("6 = %d\n", j);
assert(j == 6);
}