1  /* PR rtl-optimization/104814 */
       2  
       3  short a = 0;
       4  static long b = 0;
       5  int c = 7;
       6  char d = 0;
       7  short *e = &a;
       8  long f = 0;
       9  
      10  unsigned long
      11  foo (unsigned long h, long j)
      12  {
      13    return j == 0 ? h : h / j;
      14  }
      15  
      16  int
      17  main ()
      18  {
      19    long k = f;
      20    for (; c; --c)
      21      {
      22        for (int i = 0; i < 7; ++i)
      23  	;
      24        long m = foo (f, --b);
      25        d = ((char) m | *e) <= 43165;
      26      }
      27    if (b != -7)
      28      __builtin_abort ();
      29    return 0;
      30  }