1*c85f09ccSJohn Levon extern int g; 2*c85f09ccSJohn Levon 3*c85f09ccSJohn Levon void fun(void); loop01(void)4*c85f09ccSJohn Levonvoid loop01(void) 5*c85f09ccSJohn Levon { 6*c85f09ccSJohn Levon int i; 7*c85f09ccSJohn Levon for (i = 0; i <= 2;) 8*c85f09ccSJohn Levon if (g) 9*c85f09ccSJohn Levon fun(); 10*c85f09ccSJohn Levon } 11*c85f09ccSJohn Levon 12*c85f09ccSJohn Levon /* 13*c85f09ccSJohn Levon * check-name: loop01 global 14*c85f09ccSJohn Levon * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file 15*c85f09ccSJohn Levon * check-output-ignore 16*c85f09ccSJohn Levon * check-output-excludes: load\\..*\\[i\\] 17*c85f09ccSJohn Levon * check-output-contains: load\\..*\\[g\\] 18*c85f09ccSJohn Levon */ 19