diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/compare7.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compare7.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compare7.c b/gcc/testsuite/gcc.dg/compare7.c new file mode 100644 index 000000000..e2fbc04bf --- /dev/null +++ b/gcc/testsuite/gcc.dg/compare7.c @@ -0,0 +1,10 @@ +/* -Wall is not supposed to trigger -Wsign-compare for C. PR 10604. + See also g++.dg/warn/compare1.C. */ + +/* { dg-do compile } */ +/* { dg-options "-Wall" } */ + +int f(unsigned a, int b) +{ + return a < b; /* { dg-bogus "signed and unsigned" } */ +} |