PATCH for buggy testcase gcc.dg/980502-1.c

Manfred Hollstein manfred@s-direktnet.de
Wed May 20 05:46:00 GMT 1998


FAIL: gcc.dg/980502-1.c (test for excess errors)
  .../gcc.dg/980502-1.c: In function `f':
  .../gcc.dg/980502-1.c:8: warning: `return' with a value, in function returning void

This testcase will always fail. The appended patch makes it shut up.

manfred


Wed May 20 14:37:15 1998  Manfred Hollstein  <manfred@s-direktnet.de>

	* gcc.dg/980502-1.c: Fix return type.

diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19980520.orig/gcc/testsuite/gcc.dg/980502-1.c egcs-19980520/gcc/testsuite/gcc.dg/980502-1.c
--- egcs-19980520.orig/gcc/testsuite/gcc.dg/980502-1.c	Tue May  5 02:18:36 1998
+++ egcs-19980520/gcc/testsuite/gcc.dg/980502-1.c	Wed May 20 14:36:37 1998
@@ -1,7 +1,7 @@
 /* { dg-do compile  }*/
 /* { dg-options "-O2" } */
 
-void f(void)
+char *const f(void)
 {
         char *const line = "/dev/ptyXX";
         line[8] = 1;



More information about the Gcc-bugs mailing list