Patch: Backport change to g++.dg/opt/pr15551.C
Steve Ellcey
sje@cup.hp.com
Mon Jun 5 19:13:00 GMT 2006
The test g++.dg/opt/pr15551.C was updated on the main line by Dave
Edelsohn. The test still fails on the 4.0 and 4.1 branches because that
test change was not backported.
Is it OK if I backport his change to the 4.0 and 4.1 branches? I
believe this qualifies as a regression because 4.0 did not have the
unlink in the source. It was added on the branches after 4.0.0 and
4.1.0 were released and that is what is causing the problem fixed by
Dave's patch.
Steve Ellcey
sje@cup.hp.com
Original patch by Dave Edelsohn:
http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00876.html
* g++.dg/opt/pr15551.C: Include cstdio.
(main): Use remove instead of unlink.
Index: pr15551.C
===================================================================
*** pr15551.C (revision 113190)
--- pr15551.C (working copy)
***************
*** 7,12 ****
--- 7,13 ----
#include <cstring>
#include <fstream>
+ #include <cstdio>
using namespace std;
ostream* logfile;
*************** int main () {
*** 19,25 ****
strcpy(expList, "foo");
delete logfile;
! unlink ("bar");
return 0;
}
--- 20,26 ----
strcpy(expList, "foo");
delete logfile;
! remove ("bar");
return 0;
}
More information about the Gcc-patches
mailing list