| 1 |
/* |
| 2 |
PERMUTE_ARGS: |
| 3 |
REQUIRED_ARGS: |
| 4 |
RUN_OUTPUT: |
| 5 |
--- |
| 6 |
finished |
| 7 |
--- |
| 8 |
*/ |
| 9 |
|
| 10 |
import core.stdc.stdio; |
| 11 |
|
| 12 |
/* This isn't a very good test. If it 'fails' it just takes a very |
| 13 |
* long time. The performance improved by a factor of five between |
| 14 |
* 2.042 and 2.043. |
| 15 |
*/ |
| 16 |
void main() |
| 17 |
{ |
| 18 |
uint[uint][] aa; |
| 19 |
aa.length = 10000; |
| 20 |
for(int i = 0; i < 10_000_000; i++) |
| 21 |
{ |
| 22 |
size_t j = i % aa.length; |
| 23 |
uint k = i; |
| 24 |
uint l = i; |
| 25 |
aa[j][k] = l; |
| 26 |
} |
| 27 |
printf("finished\n"); |
| 28 |
aa[] = null; |
| 29 |
} |