]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: pr15551.C: Include cstdio.
authorSteve Ellcey <sje@cup.hp.com>
Mon, 5 Jun 2006 20:15:42 +0000 (20:15 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Mon, 5 Jun 2006 20:15:42 +0000 (20:15 +0000)
Backport from mainline:
2006-04-23  David Edelsohn  <edelsohn@gnu.org>
* g++.dg/opt/pr15551.C: Include cstdio.
(main): Use remove instead of unlink.

From-SVN: r114408

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

index ddb9ccaf79d25b4bf944606d22b5e8608a0eca83..20f8e6761caacc604c6d34d265fb49d8838147cf 100644 (file)
@@ -1,3 +1,10 @@
+2006-06-05  Steve Ellcey  <sje@cup.hp.com>
+
+       Backport from mainline:
+       2006-04-23  David Edelsohn  <edelsohn@gnu.org>
+       * g++.dg/opt/pr15551.C: Include cstdio.
+       (main): Use remove instead of unlink.
+
 2006-06-05  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/25161
index eb5441f837d0dedf410544b822ac92edb627d12f..dc3ddc44662cd5d5026ccde45f1dcb0bfdd4bb36 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;
 }