2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / warn / compare1.C
blobe00592262c63d3b8b7a36a424e4a36e223818001
1 /* -Wall is supposed to trigger -Wsign-compare for C++.  PR 10604.
2    See also gcc.dg/compare7.c.  */
4 /* { dg-do compile } */
5 /* { dg-options "-Wall" } */
7 int f(unsigned a, int b)
9   return a < b;  /* { dg-warning "signed and unsigned" } */