structs{intc;inta[];}s;intf;voidfun(void);voidfoo(void){for(f=1;;)if(s.a[f])fun();}/* * check-name: global var as loop index * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file * check-output-ignore * check-output-contains: load\\..*\\[f\\] */