1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  
       4  int GetMouseButton ();
       5  int ParsePos ();
       6  
       7  short
       8  GetCmd ()
       9  {
      10    int c, c1;
      11    for (c = 255; c == 255;)
      12      {
      13        c = GetMouseButton ();
      14        if (c >= 0)
      15  	{
      16  	  c = ParsePos (c, -1, 0);
      17  	  c1 = ParsePos (c1, c, 1);
      18  	  if (c == c1 && (c >= 0 || c == -10))
      19  	    {
      20  	      return c;
      21  	    }
      22  	  if (c >= 0 && c1 == -12)
      23  	    {
      24  	      return ((((((10) + 1) + 1)) + 1) << 7) | c;
      25  	    }
      26  	  c = 255;
      27  	}
      28      }
      29  }
      30