Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.misc-tests / matrix1.c
blobf25a367fb94d39c7585f2ff9e07e4c8540512b0e
1 /* Matrix operations */
3 #define BOUND 100
5 int a[BOUND][BOUND],b[BOUND][BOUND],c[BOUND][BOUND];
7 main()
9 int i,j,k;
13 for (i=0; i<BOUND; i++)
15 for (j=0; j<BOUND; j++)
17 a[i][j] = 1;
18 b[i][j] = 1;
21 for (i=0; i<BOUND; i++)
23 for (j=0; j<BOUND; j++)
25 c[i][j] = 0;
26 for (k=0; k<BOUND; k++)
28 c[i][j] = c[i][j] + a[i][k] * b[k][j];
32 for (i=0; i<BOUND; i++)
34 for (j=0; j<BOUND; j++)
36 if (c[i][j] != BOUND)
38 puts("ERROR");
39 return 0;
43 i=5;
45 return 0;