Mercurial > projects > ldc
view test/arrays4.d @ 284:70c370e97944 trunk
[svn r305] Started support for custom class allocators/deallocators. Allocators with more than one argument still need to be fixed.
Removed the LLVM stacktrace code from mars.c.
Moved the LLVM based default target detection code from mars.c to llvmhelpers.cpp.
author | lindquist |
---|---|
date | Sat, 21 Jun 2008 02:48:53 +0200 |
parents | c44e6a711885 |
children |
line wrap: on
line source
module arrays4; void main() { int[] arr; arr ~= 3; assert(arr.length == 1); assert(arr[0] == 3); arr ~= 5; assert(arr.length == 2); assert(arr[0] == 3); assert(arr[1] == 5); }