rt_gccstream/gcc/testsuite/gcc.dg/pr11492.c

13 lines
269 B
C

/* PR11492 */
/* { dg-do compile } */
/* { dg-options "-Wsign-compare" } */
int main( void )
{
unsigned int a;
unsigned char b;
for ( a = 0, b = 2; a > b * 100; a++ ) /* { dg-bogus "comparison between signed and unsigned integer" "" } */
{ ; }
return 0;
}