annotate tests/mini/classes11.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/classes11.d@d9d5d59873d8
children
rev   line source
lindquist@128 1 module classes11;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@128 3
lindquist@128 4 void main()
lindquist@128 5 {
lindquist@128 6 static class C
lindquist@128 7 {
lindquist@128 8 void func()
lindquist@128 9 {
lindquist@128 10 printf("Hello world\n");
lindquist@128 11 }
lindquist@128 12 }
lindquist@128 13
lindquist@128 14 scope c = new C;
lindquist@128 15 c.func();
lindquist@128 16 }