This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Test gcc.dg/cpp/wchar-1.c fails on cygwin


Billinghurst, David (CRTS) wrote:-

> New test gcc.dg/cpp/wchar-1.c fails on cygwin with
> 
> .../wchar-1.c: In function `main':
> .../wchar-1.c:18: warning: comparison is always false due to limited range of data type

I've applied this to 3.2.  Let me know if it fixes it, and I'll apply it
to 3.1 as well.

Thanks,

Neil.

	* gcc.dg/cpp/wchar-1.c: Update.

Index: wchar-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/wchar-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 wchar-1.c
--- wchar-1.c	2002/02/24 12:52:30	1.1
+++ wchar-1.c	2002/03/17 13:14:05
@@ -15,7 +15,7 @@ int main ()
   if (c > 0)
     abort ();
 #else
-  if (c < 0)
+  if (c < 0)	/* { dg-warning "always false" } */
     abort ();
 #endif
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]