mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
29 lines
499 B
D
29 lines
499 B
D
/*
|
|
PERMUTE_ARGS:
|
|
REQUIRED_ARGS:
|
|
RUN_OUTPUT:
|
|
---
|
|
finished
|
|
---
|
|
*/
|
|
|
|
import core.stdc.stdio;
|
|
|
|
/* This isn't a very good test. If it 'fails' it just takes a very
|
|
* long time. The performance improved by a factor of five between
|
|
* 2.042 and 2.043.
|
|
*/
|
|
void main()
|
|
{
|
|
uint[uint][] aa;
|
|
aa.length = 10000;
|
|
for(int i = 0; i < 10_000_000; i++)
|
|
{
|
|
size_t j = i % aa.length;
|
|
uint k = i;
|
|
uint l = i;
|
|
aa[j][k] = l;
|
|
}
|
|
printf("finished\n");
|
|
aa[] = null;
|
|
}
|