Mercurial > projects > ldc
comparison test/typeinfo3.d @ 100:5071469303d4 trunk
[svn r104] TONS OF FIXES.
Split up declaration, constant initializer gen and definition for globals, structs, classes and functions.
Improved ClassInfo support (not complete), not in vtable yet.
Fixed a bunch of forward reference problems.
Much more. Major commit! :)
author | lindquist |
---|---|
date | Fri, 16 Nov 2007 08:21:47 +0100 |
parents | 2b5a2eaa88be |
children |
comparison
equal
deleted
inserted
replaced
99:a676a7743642 | 100:5071469303d4 |
---|---|
2 | 2 |
3 typedef int int_t; | 3 typedef int int_t; |
4 | 4 |
5 void main() | 5 void main() |
6 { | 6 { |
7 int_t i; | 7 /*int_t i; |
8 auto ti = typeid(typeof(i)); | 8 auto ti = typeid(typeof(i)); |
9 printf("%s\n",ti.toString.ptr); | 9 printf("%s\n",ti.toString.ptr); |
10 assert(ti.toString() == "typeinfo3.int_t"); | 10 assert(ti.toString() == "typeinfo3.int_t"); |
11 assert(ti.next !is null); | 11 assert(ti.next !is null); |
12 assert(ti.next.toString() == "int"); | 12 assert(ti.next.toString() == "int"); |
13 assert(ti.init is null); | 13 assert(ti.init is null);*/ |
14 } | 14 } |