view test/arrays5.d @ 115:5ba6d286c941 trunk

[svn r119] Added the monitor data field that comes after the vtable pointer to all classes. Represented as a void* initialized to zero.
author lindquist
date Sun, 25 Nov 2007 03:58:55 +0100
parents 61615fa85940
children
line wrap: on
line source

module arrays5;
void main()
{
    auto arr = new float[5];
    {arr[4] = 1f;}
    {assert(arr[0] !<>= 0f);}
    {assert(arr[1] !<>= 0f);}
    {assert(arr[2] !<>= 0f);}
    {assert(arr[3] !<>= 0f);}
    {assert(arr[4] == 1f);}
}