Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
/* PR tree-optimization/47140 */ static inline int foo (int x, short y) { return y == 0 ? x : x + y; } static inline unsigned short bar (unsigned short x, unsigned char y) { return x - y; } int w; int baz (void); int test (void) { int i; for (i = 0; i < 50; i++) w += foo ((unsigned char) (1 + baz ()) >= bar (0, 1), 0); }