modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr47140.c (about) 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 }