PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr38048-1.c
blobb87363f644674cdeff0a3111330ae0a4ccef5df2
1 extern void abort(void);
3 int foo ()
5 int mat[2][1];
6 int (*a)[1] = mat;
7 int det = 0;
8 int i;
9 mat[0][0] = 1;
10 mat[1][0] = 2;
11 for (i = 0; i < 2; ++i)
12 det += a[i][0];
13 return det;
16 int main()
18 if (foo () != 3)
19 abort ();
20 return 0;