diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-07-19 09:02:07 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-07-19 09:02:07 +0000 |
commit | 4d3c86e2fcb3770f6cff4713f1b58a3a577ebfb3 (patch) | |
tree | 7da4a4c75a3ed066bfffbbe3e50aec3a18a1e93d /gcc/testsuite | |
parent | b09c79a8f15666377bfd869a8d377344b2b58a94 (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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/opt/pr15551.C | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |