view test/multiarr1.d @ 79:875617f89c51 trunk

[svn r83] Fixed: Returning a struct from within the try block of a try-finally was broken.
author lindquist
date Wed, 31 Oct 2007 22:20:19 +0100
parents b688ad419f8c
children 61615fa85940
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);
    {assert(*((cast(int*)a)+10*16+13) == 42);}
}