This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Test gcc.dg/cpp/wchar-1.c fails on cygwin
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 17 Mar 2002 13:16:02 +0000
- Subject: Re: Test gcc.dg/cpp/wchar-1.c fails on cygwin
- References: <FAC87D7C874EAB46A847604DA4FD5A640346C5@crtsmail.corp.riotinto.org>
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