view test/arrays3.d @ 222:251548c1035d trunk

[svn r238] use *m for memory input constraints and pass in their address
author ChristianK
date Fri, 06 Jun 2008 21:44:17 +0200
parents 4648206ca213
children
line wrap: on
line source

module arrays3;

void main()
{
    int[] arr;
    {arr = new int[25];}
    {assert(arr.length == 25);}
    {arr.length = arr.length + 5;}
    {assert(arr.length == 30);}
}