aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-19 09:02:07 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-19 09:02:07 +0000
commitf8f2e4232a98d0e2633d04cd2ddac370965aa4cf (patch)
tree7da4a4c75a3ed066bfffbbe3e50aec3a18a1e93d
parent429ce9c353f1b1d8eeeee2bb57a0c9e6628c42a9 (diff)
backport 2006-04-23 David Edelsohn <edelsohn@gnu.org>
* g++.dg/opt/pr15551.C: Include cstdio. (main): Use remove instead of unlink. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/csl/sourcerygxx-4_1@115583 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--ChangeLog.csl6
-rw-r--r--gcc/testsuite/g++.dg/opt/pr15551.C3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index 5576c9dbcfa..4e6dc7614fa 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,9 @@
+2006-07-19 Nathan Sidwell <nathan@codesourcery.com>
+
+ backport 2006-04-23 David Edelsohn <edelsohn@gnu.org>
+ * g++.dg/opt/pr15551.C: Include cstdio.
+ (main): Use remove instead of unlink.
+
2006-07-14 Paul Brook <paul@codesourcery.com>
gcc/
diff --git a/gcc/testsuite/g++.dg/opt/pr15551.C b/gcc/testsuite/g++.dg/opt/pr15551.C
index eb5441f837d..dc3ddc44662 100644
--- a/gcc/testsuite/g++.dg/opt/pr15551.C
+++ b/gcc/testsuite/g++.dg/opt/pr15551.C
@@ -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;
}