Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr28121.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 |