Mercurial > projects > ldc
view tests/mini/nested19.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 | a34078905d01 |
children |
line wrap: on
line source
module mini.nested19; void main() { int i = 1; class C { int j = 2; void func() { int k = 3; void foo() { i = i+j+k; } foo(); } } auto c = new C; c.func(); assert(i == 6); }