Mercurial > projects > ldc
view tests/mini/arrayops2.d @ 1091:20d96c148b39
Fix for fmul/div/add/sub with no operands. Revert explicit ST0 definition since a typo
had caused the need for that.
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Tue, 10 Mar 2009 18:34:19 -0600 |
parents | 06576ece1a1b |
children |
line wrap: on
line source
void main() { int[4] a = [1,2,3,4]; int[4] b = [5,6,7,8]; a[] += b[]; assert(a[0] == 6); assert(a[1] == 8); assert(a[2] == 10); assert(a[3] == 12); }