Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/nested7.d Fri Dec 28 22:55:24 2007 +0100 @@ -0,0 +1,32 @@ +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); +}