Mercurial > projects > ldc
view tests/mini/aa7.d @ 962:a415d305477f
Fix 32 bit truncation of 'asm { movq RAX, 0xAA_1234_5678; }'...ie. move constant larger than 32 bits
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Sun, 15 Feb 2009 16:30:15 -0700 |
parents | f8c979770af3 |
children |
line wrap: on
line source
// adapted from dstress.run.a.associative_array_19_<n> to catch regressions early module mini.aa7; extern (C) int printf(char*, ...); extern (C) void gc_collect(); int main(){ char*[char] aa; char key = 'a'; aa[key] = &key; gc_collect(); assert(aa[key] == &key); assert(key in aa); return 0; }