view gcc/testsuite/gcc.dg/pr28121.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O2" } */

int GetMouseButton ();
int ParsePos ();

short
GetCmd ()
{
  int c, c1;
  for (c = 255; c == 255;)
    {
      c = GetMouseButton ();
      if (c >= 0)
	{
	  c = ParsePos (c, -1, 0);
	  c1 = ParsePos (c1, c, 1);
	  if (c == c1 && (c >= 0 || c == -10))
	    {
	      return c;
	    }
	  if (c >= 0 && c1 == -12)
	    {
	      return ((((((10) + 1) + 1)) + 1) << 7) | c;
	    }
	  c = 255;
	}
    }
}