PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr38048-2.c
blobf4fe40cac8768b1ca8e97fa23d50191c1af1de8d
1 extern void abort (void);
3 static int inv_J(int a[][2])
5 int i, j;
6 int det = 0.0;
7 for (j=0; j<2; ++j)
8 det += a[j][0] + a[j][1];
9 return det;
12 int foo()
14 int mat[2][2];
15 mat[0][0] = 1;
16 mat[0][1] = 2;
17 mat[1][0] = 4;
18 mat[1][1] = 8;
19 return inv_J(mat);
22 int main()
24 if (foo () != 15)
25 abort ();
26 return 0;