aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/compare7.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/compare7.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/compare7.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/compare7.c b/gcc-4.9/gcc/testsuite/gcc.dg/compare7.c
new file mode 100644
index 000000000..e2fbc04bf
--- /dev/null
+++ b/gcc-4.9/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" } */
+}