blob: 75ea5bf2b8d9838882a155ad61b69b0ada6c5eb4 [file] [log] [blame]
// REQUIRED_ARGS: -d
// PERMUTE_ARGS: -inline -g -O
void main()
{
auto darray1 = new int*[](10);
foreach(ref v; darray1)
v = new int;
auto darray2 = new int*[](10);
darray2[] = darray1[]; // calls memset instead of memcpy
foreach(i; 0 .. 10)
assert(darray1[i] == darray2[i]);
}