1/* PR c/2098 */
2/* Test for a warning on comparison on out-of-range data.  */
3/* { dg-do compile } */
4/* { dg-options "-Wtype-limits" } */
5
6signed char sc;
7unsigned char uc;
8
9void foo()
10{
11  if (sc == 10000) return; /* { dg-warning "always false" "signed" } */
12  if (uc == 10000) return; /* { dg-warning "always false" "unsigned" } */
13}
14