Mercurial > projects > ldc
annotate test/pt.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 | 3d60e549b0c2 |
children | d9d5d59873d8 |
rev | line source |
---|---|
1 | 1 int main() |
2 { | |
3 char[16] s = void; | |
4 { | |
5 char[] sd = s; | |
6 { | |
7 s[0] = 'a'; | |
8 s[1] = 'b'; | |
9 s[2] = 'c'; | |
10 } | |
11 | |
12 printf("%p %p\n", s.ptr, sd.ptr); | |
13 printf("%c%c%c\n", s[0], s[1], s[2]); | |
14 } | |
15 | |
16 char[16] s1 = void; | |
17 char[16] s2 = void; | |
18 char[] d1 = s1; | |
19 | |
20 { | |
21 printf("%p\n%p\n%p\n", s1.ptr, s2.ptr, d1.ptr); | |
22 } | |
23 | |
24 int[16] arr; | |
25 | |
26 return 0; | |
27 } |