/* 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; | |
} |