annotate test/interface7.d @ 131:5825d48b27d1
trunk
[svn r135] * Merged DMD 1.025 *
* Fixed a minor linking order mishap *
* Added an command line option -annotate *
* Fixed some problems with running optimizations *
* Added std.stdio and dependencies to lphobos (still not 100% working, but compiles and links) *
* Fixed problems with passing aggregate types to variadic functions *
* Added initial code towards full GC support, currently based on malloc and friends, not all the runtime calls the GC yet for memory *
* Fixed problems with resolving nested function context pointers for some heavily nested cases *
* Redid function argument passing + other minor code cleanups, still lots to do on this end... *
author |
lindquist |
date |
Fri, 04 Jan 2008 01:38:42 +0100 |
parents |
5880c12dba83 |
children |
44a95ac7368a |
rev |
line source |
114
|
1 module interface7;
|
|
2
|
|
3 interface I
|
|
4 {
|
|
5 }
|
|
6
|
|
7 class C : I
|
|
8 {
|
|
9 }
|
|
10
|
|
11 void main()
|
|
12 {
|
|
13 I i = new C;
|
|
14 ClassInfo ci = i.classinfo;
|
|
15 char[] name = ci.name;
|
|
16 printf("ci.name = %.*s\n", name.length, name.ptr);
|
|
17 ClassInfo cI = I.classinfo;
|
|
18 name = cI.name;
|
|
19 printf("cI.name = %.*s\n", name.length, name.ptr);
|
|
20 assert(ci is cI);
|
|
21 }
|