1 /* { dg-do run } */ 2 3 extern void abort (void); 4 5 int e[100], n, here; 6 7 void __attribute__((noinline)) foo(void)8foo(void) 9 { 10 int i, k = 0; 11 for (i = 0; i < n; ++i) { e[k] = 10; ++k; e[k] = 10; ++k; } 12 for (i = 0; i < k; ++i) here = 1; 13 if (here != 1) 14 abort (); 15 } 16 main(void)17int main(void) 18 { 19 n = 10; 20 foo(); 21 return 0; 22 } 23