This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Last V3 vs. testsuite change
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Last V3 vs. testsuite change
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 04 Nov 2000 12:14:23 -0800
- Organization: CodeSourcery, LLC
I believe this is the last testsuite tweak needed to make the V3
results identical to the non-V3 results on i686-pc-linux-gnu. Yay!
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-11-04 Mark Mitchell <mark@codesourcery.com>
* g++.old-deja/g++.law/weak.C: Fix uses of iostreams to be
standards-conformant.
Index: g++.old-deja/g++.law/weak.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.law/weak.C,v
retrieving revision 1.2
diff -c -p -r1.2 weak.C
*** weak.C 1999/09/04 15:09:02 1.2
--- weak.C 2000/11/04 20:12:50
***************
*** 7,20 ****
// with the copy of __IO_putc in the libstdc++ library built by egcs.
#include <iostream.h>
#include <streambuf.h>
! istream x;
! extern "C" int putc(), fgets();
main () {
x.get();
! putc();
! fgets();
! x.gets(0, 0);
}
--- 7,20 ----
// with the copy of __IO_putc in the libstdc++ library built by egcs.
#include <iostream.h>
#include <streambuf.h>
+ #include <stdio.h>
! istream x (0);
main () {
x.get();
! putc(0, 0);
! fgets(0, 0, 0);
! x.get((char*) 0, 0);
}