Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr47140.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 /* PR tree-optimization/47140 */ |
2 | |
3 static inline int | |
4 foo (int x, short y) | |
5 { | |
6 return y == 0 ? x : x + y; | |
7 } | |
8 | |
9 static inline unsigned short | |
10 bar (unsigned short x, unsigned char y) | |
11 { | |
12 return x - y; | |
13 } | |
14 | |
15 int w; | |
16 | |
17 int baz (void); | |
18 | |
19 int | |
20 test (void) | |
21 { | |
22 int i; | |
23 for (i = 0; i < 50; i++) | |
24 w += foo ((unsigned char) (1 + baz ()) >= bar (0, 1), 0); | |
25 } |