OSDN Git Service

2006-12-19 Eric Christopher <echristo@apple.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr28121.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 short
5 GetCmd ()
6 {
7   int c, c1;
8   for (c = 255; c == 255;)
9     {
10       c = GetMouseButton ();
11       if (c >= 0)
12         {
13           c = ParsePos (c, -1, 0);
14           c1 = ParsePos (c1, c, 1);
15           if (c == c1 && (c >= 0 || c == -10))
16             {
17               return c;
18             }
19           if (c >= 0 && c1 == -12)
20             {
21               return ((((((10) + 1) + 1)) + 1) << 7) | c;
22             }
23           c = 255;
24         }
25     }
26 }
27