Mercurial > projects > dstress
view run/r/remove_01.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 15b52e26c8f4 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.r.remove_01; class Int{ this(int i){ this.i = i; } int i; } int main(){ Int[char[]] array; Int a = new Int(1); array["eins"]=a; Int b = new Int(2); array["zwei"]=b; Int c = new Int(3); array["drei"]=c; assert(("zwei" in array) !is null); array.remove("zwei"); assert(("zwei" in array) is null); assert(b !is null); return 0; }