Mercurial > projects > ldc
comparison test/nested10.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 | 25fa34e899e9 |
comparison
equal
deleted
inserted
replaced
128:e5fe8521bbfa | 129:8096ba7082db |
---|---|
1 module nested10; | |
2 | |
3 void main() | |
4 { | |
5 int j = 3; | |
6 void F() | |
7 { | |
8 int i = j; | |
9 printf("F: i = %d, j = %d\n", i, j); | |
10 void G() | |
11 { | |
12 printf("G: i = %d, j = %d\n", i, j); | |
13 j += i; | |
14 } | |
15 G(); | |
16 } | |
17 F(); | |
18 printf("6 = %d\n", j); | |
19 assert(j == 6); | |
20 } |