[svn r40] Cleaned up some of the array routines to use gep/load/store instead of memcpy/memset.

Resizing arrays did not allocate enough memory for types bigger than 1 byte.
This commit is contained in:
Tomas Lindquist Olsen
2007-10-09 07:51:13 +02:00
parent e251fc42b2
commit 4fdad2c750
5 changed files with 59 additions and 55 deletions

7
test/arrays4.d Normal file
View File

@@ -0,0 +1,7 @@
module arrays4;
void main()
{
auto arr = new int[4];
{auto arrcat = arr ~ arr;}
}