pr15551.C: Include cstdio.
authorDavid Edelsohn <edelsohn@gnu.org>
Sun, 23 Apr 2006 23:58:36 +0000 (23:58 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 23 Apr 2006 23:58:36 +0000 (19:58 -0400)
        * g++.dg/opt/pr15551.C: Include cstdio.
        (main): Use remove instead of unlink.

From-SVN: r113206

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr15551.C

index 7714bc2..6e05f64 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-23  David Edelsohn  <edelsohn@gnu.org>
+
+       * g++.dg/opt/pr15551.C: Include cstdio.
+       (main): Use remove instead of unlink.
+
 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc.dg/sibcall-7.c: New test.
index eb5441f..dc3ddc4 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <cstring>
 #include <fstream>
+#include <cstdio>
 using namespace std;
 
 ostream* logfile;
@@ -19,7 +20,7 @@ int main () {
   strcpy(expList, "foo");
 
   delete logfile;
-  unlink ("bar");
+  remove ("bar");
 
   return 0;
 }