view test/bug54.d @ 175:c44e6a711885 trunk

[svn r191] Fixed: array literals did not support all type/storage combinations. Fixed: with expression had broke somewhere along the way.
author lindquist
date Wed, 07 May 2008 00:01:13 +0200
parents 3f949c6e2e9d
children
line wrap: on
line source

module bug54;

extern(C) size_t strlen(char*);

// creating args for main
void d_main_args(size_t n, char** args, ref char[][] res)
{
    assert(res.length == n);
    foreach(i,v; args[0..n])
    {
        res[i] = v[0 .. strlen(v)];
    }
}

void main()
{
}