Mercurial > projects > dstress
view run/f/for_06_J.d @ 619:107d6211c81e
Deewiant <deewiant.doesnotlike.spam@gmail.com>
2005-08-06
news:dd23j9$1b6c$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 06 Aug 2005 15:54:38 +0000 |
parents | |
children | 1e6afb94ce6d |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Deewiant <deewiant.doesnotlike.spam@gmail.com> // @date@ 2005-08-06 // @uri@ news:dd23j9$1b6c$1@digitaldaemon.com // __DSTRESS_DFLAGS__ -release -O module dstress.run.f.for_06_J; int foo(ifloat[] arr) { size_t i = 1; int counter; for(size_t j = arr.length-1; j >= i; j--) { arr[j] = arr[j - i]; counter++; } return counter; } int main(){ ifloat[] array; array.length = 2; if(foo(array)==1){ return 0; }else{ return 1; } }