1 /* Test for bogus -Wsign-compare warnings that appeared when not
2    folding operands before warning.  */
3 /* { dg-do compile } */
4 /* { dg-options "-Wsign-compare" } */
5 
6 int
test_compare(int a,unsigned b)7 test_compare (int a, unsigned b)
8 {
9   return (b > 8 * (a ? 4 : 8));
10 }
11 
12 unsigned int
test_conditional(int a,unsigned b,int c)13 test_conditional (int a, unsigned b, int c)
14 {
15   return (c ? b : 8 * (a ? 4 : 8));
16 }
17