weak.C: Fix uses of iostreams to be standards-conformant.
authorMark Mitchell <mark@codesourcery.com>
Sat, 4 Nov 2000 20:13:44 +0000 (20:13 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 4 Nov 2000 20:13:44 +0000 (20:13 +0000)
* g++.old-deja/g++.law/weak.C: Fix uses of iostreams to be
standards-conformant.

From-SVN: r37259

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.law/weak.C

index 00fbba66302f0103a8aba3a0de2abc675547c228..81bc17abc6e0806a61b6a1cb4aee0885abe08ce3 100644 (file)
@@ -1,5 +1,8 @@
 2000-11-04  Mark Mitchell  <mark@codesourcery.com>
 
+       * g++.old-deja/g++.law/weak.C: Fix uses of iostreams to be
+       standards-conformant.
+
        * g++.old-deja/g++.mike/net5.C: Put `abort' in `std' namespace.
 
        * g++.old-deja/g++.mike/p755.C: Tweak handling of exit.
index 98465acf9b56a674ba2d221156c1ac0e18ba1143..a799d0a0bd1b7ae99beed7ff982ff731fe6a85bd 100644 (file)
@@ -7,14 +7,14 @@
 // with the copy of __IO_putc in the libstdc++ library built by egcs.
 #include <iostream.h>
 #include <streambuf.h>
+#include <stdio.h>
 
-istream x;
-extern "C" int putc(), fgets();
+istream x (0);
 
 main () {
   x.get();
-  putc();
-  fgets(); 
-  x.gets(0, 0);
+  putc(0, 0);
+  fgets(0, 0, 0); 
+  x.get((char*) 0, 0);
 }