1 /* { dg-do compile } */ 2 /* { dg-options "-Ofast -floop-interchange" } */ 3 4 int a, b, c, d, f, g; 5 int e[1], h[1]; 6 void fn2 (); 7 void fn3 (); 8 void fn1()9fn1 () 10 { 11 fn2 (); 12 b = 0; 13 for (; b < 10; b++) 14 ; 15 } 16 17 void fn2()18fn2 () 19 { 20 if (a) 21 { 22 fn3 (); 23 c = d; 24 } 25 } 26 27 void fn3()28fn3 () 29 { 30 for (; g; g++) 31 e[g] = 2; 32 if (f) 33 for (; g; g++) 34 h[g] = 5; 35 } 36