]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/runnable/testgc3.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / runnable / testgc3.d
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS:
3
4 import core.stdc.stdio;
5
6 /* This isn't a very good test. If it 'fails' it just takes a very
7 * long time. The performance improved by a factor of five between
8 * 2.042 and 2.043.
9 */
10 void main()
11 {
12 uint[uint][] aa;
13 aa.length = 10000;
14 for(int i = 0; i < 10_000_000; i++)
15 {
16 size_t j = i % aa.length;
17 uint k = i;
18 uint l = i;
19 aa[j][k] = l;
20 }
21 printf("finished\n");
22 aa[] = null;
23 }
24