This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: Backport change to g++.dg/opt/pr15551.C


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;
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]