annotate tests/mini/nested9.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/nested9.d@d9d5d59873d8
children
rev   line source
lindquist@129 1 module nested9;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@129 3
lindquist@129 4 void main()
lindquist@129 5 {
lindquist@129 6 int i = 42;
lindquist@129 7 int func()
lindquist@129 8 {
lindquist@129 9 return i + 1;
lindquist@129 10 }
lindquist@129 11 int j = func();
lindquist@129 12 printf("j = %d\n", j);
lindquist@129 13 assert(j == 43);
lindquist@129 14 }