Mercurial > projects > ldc
view test/multiarr1.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 | 61615fa85940 |
children | 385a18242485 |
line wrap: on
line source
module multiarr1; void main() { int[16][16] a; a[10][13] = 42; //assert(a[0][0] == 0); //assert(a[10][13] == 42); { int* l = cast(int*)a; l += 10*16+13; assert(*l == 42); } }