blob: 4916d9075654ecef3ea5e0c43c7ae226381da462 [file] [log] [blame]
/* PR tree-optimization/36008 */
extern void abort (void);
int g[48][3][3];
void __attribute__ ((noinline))
bar (int x[3][3], int y[3][3])
{
static int i;
if (x != g[i + 8] || y != g[i++])
abort ();
}
static inline void __attribute__ ((always_inline))
foo (int x[][3][3])
{
int i;
for (i = 0; i < 8; i++)
{
int k = i + 8;
bar (x[k], x[k - 8]);
}
}
int
main ()
{
foo (g);
return 0;
}