annotate test/classes11.d @ 270:d9d5d59873d8 trunk

[svn r291] Fixed a bunch of the old Phobos tests to work with Tango. Branch statements now emit a new block after it. Fixed the _adSort runtime function had a bad signature. Added a missing dot prefix on compiler generated string tables for string switch. Fixed, PTRSIZE seems like it was wrong on 64bit, now it definitely gets set properly.
author lindquist
date Mon, 16 Jun 2008 16:01:19 +0200
parents e5fe8521bbfa
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 }