annotate tests/mini/aa7.d @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
parents f8c979770af3
children
rev   line source
tomas@490 1 // adapted from dstress.run.a.associative_array_19_<n> to catch regressions early
tomas@486 2
tomas@486 3 module mini.aa7;
tomas@486 4
tomas@486 5 extern (C) int printf(char*, ...);
tomas@486 6 extern (C) void gc_collect();
tomas@486 7
tomas@486 8
tomas@486 9 int main(){
tomas@490 10 char*[char] aa;
tomas@486 11
tomas@490 12 char key = 'a';
tomas@490 13 aa[key] = &key;
tomas@486 14 gc_collect();
tomas@490 15 assert(aa[key] == &key);
tomas@490 16 assert(key in aa);
tomas@486 17
tomas@486 18 return 0;
tomas@486 19 }
tomas@486 20