Mercurial > projects > dstress
comparison run/f/for_06_G.d @ 1535:20d8ee6523e1
updated to DMD-1.013
author | thomask |
---|---|
date | Mon, 07 May 2007 05:19:57 +0000 |
parents | b8c0195059d9 |
children |
comparison
equal
deleted
inserted
replaced
1534:345207906be7 | 1535:20d8ee6523e1 |
---|---|
6 // @date@ 2005-08-06 | 6 // @date@ 2005-08-06 |
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4699 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4699 |
8 | 8 |
9 module dstress.run.f.for_06_G; | 9 module dstress.run.f.for_06_G; |
10 | 10 |
11 int foo(inout real[] arr) { | 11 int foo(ref real[] arr) { |
12 size_t i = 1; | 12 size_t i = 1; |
13 int counter; | 13 int counter; |
14 | 14 |
15 for(size_t j = arr.length-1; j >= i; j--) { | 15 for(size_t j = arr.length-1; j >= i; j--) { |
16 arr[j] = arr[j - i]; | 16 arr[j] = arr[j - i]; |