aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/opt/pr15551.C3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7714bc2..6e05f64 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/g++.dg/opt/pr15551.C b/gcc/testsuite/g++.dg/opt/pr15551.C
index eb5441f..dc3ddc4 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;
}