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

Neil Booth neil@daikokuya.demon.co.uk
Sun Mar 17 09:15:00 GMT 2002


Neil Booth wrote:-

> 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

Of course, that doesn't work for the other case.  Unless you have a good
idea on how to test that an unknown type is non-negative in such a way
that it doesn't generate a diagnostic, then I think this is best.

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.3
diff -u -p -r1.3 wchar-1.c
--- wchar-1.c	2002/03/17 17:09:01	1.3
+++ wchar-1.c	2002/03/17 17:12:40
@@ -1,6 +1,7 @@
 /* Copyright (C) 2002 Free Software Foundation, Inc.  */
 
 /* { dg-do run } */
+/* { dg-options "-w" } */
 
 /* Source: Neil Booth, 24 Feb 2002.
 



More information about the Gcc-bugs mailing list