diff test/arrays4.d @ 37:77cdca8c210f trunk

[svn r41] new'd dynamic arrays are now initialized with the element type's default initializer. initial label/goto support.
author lindquist
date Wed, 10 Oct 2007 03:38:24 +0200
parents c0967c4b2a74
children 8b0e809563df
line wrap: on
line diff
--- a/test/arrays4.d	Tue Oct 09 07:51:13 2007 +0200
+++ b/test/arrays4.d	Wed Oct 10 03:38:24 2007 +0200
@@ -3,5 +3,7 @@
 void main()
 {
     auto arr = new int[4];
-    {auto arrcat = arr ~ arr;}
+    auto arrcat = arr ~ arr;
+    assert(arrcat.length == arr.length * 2);
 }
+