Mercurial > projects > ldc
annotate tangotests/t.d @ 139:0ab29b838084 trunk
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
Fixed: tango.io.Console seems to be working now.
author | lindquist |
---|---|
date | Tue, 22 Jan 2008 00:01:16 +0100 |
parents | aeddd4d533b3 |
children | 336ec4f4bbb3 |
rev | line source |
---|---|
138 | 1 interface MyInterface |
2 { | |
3 void func(); | |
4 } | |
5 | |
6 abstract class MyBaseClass : MyInterface | |
7 { | |
8 abstract void func(); | |
9 } | |
10 | |
11 class MyClass : MyBaseClass | |
12 { | |
13 void func() | |
14 { | |
15 } | |
16 | |
17 MyBaseClass toBase() | |
18 { | |
19 return this; | |
20 } | |
21 } | |
22 | |
23 void main() | |
24 { | |
25 printf("STARTING\n"); | |
26 auto c = new MyClass; | |
27 printf("c = %p\n", c); | |
28 auto b = c.toBase; | |
29 printf("b = %p\n", b); | |
30 printf("FINISHED\n"); | |
31 } | |
32 | |
33 extern(C) int printf(char*, ...); |