annotate test/nested9.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
rev   line source
lindquist@129 1 module nested9;
lindquist@129 2
lindquist@129 3 void main()
lindquist@129 4 {
lindquist@129 5 int i = 42;
lindquist@129 6 int func()
lindquist@129 7 {
lindquist@129 8 return i + 1;
lindquist@129 9 }
lindquist@129 10 int j = func();
lindquist@129 11 printf("j = %d\n", j);
lindquist@129 12 assert(j == 43);
lindquist@129 13 }