gcc/testsuite/gcc.dg/20030612-2.c
raw| 1 | /* Derived from PR middle-end/168. */ |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-W" } */ |
| 5 | |
| 6 | extern void foo (); |
| 7 | |
| 8 | unsigned char uc; |
| 9 | unsigned short int usi; |
| 10 | unsigned int ui; |
| 11 | |
| 12 | |
| 13 | void bar() |
| 14 | { |
| 15 | if (uc + usi >= ui) /* { dg-bogus "between signed and unsigned" } */ |
| 16 | foo (); |
| 17 | if (uc * usi >= ui) /* { dg-bogus "between signed and unsigned" } */ |
| 18 | foo (); |
| 19 | } |
| 20 |