1  /* { dg-do compile } */ 
       2  /* { dg-options "-O2 -fno-tree-loop-im -fdump-tree-pre-stats" } */
       3  typedef int type[2];
       4  int main(type *a, int argc)
       5  {
       6    int i;
       7    int e;
       8  
       9    /* Should be able to hoist this out of the loop.  */
      10    for (i = 0; i < argc; i++)
      11      {
      12        e = (*a)[0];
      13      }
      14    return e;
      15  }
      16  
      17  /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */