Mercurial > projects > dstress
view run/c/creal_28_B.d @ 744:d64391ac2148
bulk catch up
author | thomask |
---|---|
date | Sun, 13 Nov 2005 07:31:43 +0000 |
parents | |
children | 5511f9277078 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Tiago Gasiba <tiago.gasiba@gmail.com> // @date@ 2005-11-07 // @uri@ news:dko4a8$95q$2@digitaldaemon.com module dstress.run.c.creal_28_B; void foo(creal[] data){ data[0] -= data[0].re; } int main(){ creal[1] d; d[0] = 1.0 + 2.0i; foo(d); assert(d[0].im == 2.0); assert(d[0].re == 0.0); return 0; }