PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20080424-1.c
blob4916d9075654ecef3ea5e0c43c7ae226381da462
1 /* PR tree-optimization/36008 */
3 extern void abort (void);
5 int g[48][3][3];
7 void __attribute__ ((noinline))
8 bar (int x[3][3], int y[3][3])
10 static int i;
11 if (x != g[i + 8] || y != g[i++])
12 abort ();
15 static inline void __attribute__ ((always_inline))
16 foo (int x[][3][3])
18 int i;
19 for (i = 0; i < 8; i++)
21 int k = i + 8;
22 bar (x[k], x[k - 8]);
26 int
27 main ()
29 foo (g);
30 return 0;