comparison test/nested7.d @ 129:8096ba7082db trunk

[svn r133] Fixed some problems with inlining not happening :P Fixed problems with certain cases of deeply nested classes/functions.
author lindquist
date Fri, 28 Dec 2007 22:55:24 +0100
parents
children d9d5d59873d8
comparison
equal deleted inserted replaced
128:e5fe8521bbfa 129:8096ba7082db
1 module nested7;
2
3 void main()
4 {
5 int i;
6 i = 52;
7 printf("i = %d\n", i);
8
9 void func()
10 {
11 i++;
12
13 void func2()
14 {
15 i++;
16
17 void func3()
18 {
19 i++;
20 }
21
22 func3();
23 }
24
25 func2();
26 }
27
28 func();
29
30 printf("i = %d\n", i);
31 assert(i == 55);
32 }