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: Run init tests only when __cxa_atexit is supported.


The 3 tests included here will only pass on systems that have an
implementation of __cxa_atexit.  This change is to use the
dg-require-cxa-atexit check that I brought over from the libstdc++
testsuite to check for __cxa_atexit and only run the tests on systems
that have __cxa_atexit.

Ok to checkin?

Steve Ellcey
sje@cup.hp.com


2006-05-15  Steve Ellcey  <sje@cup.hp.com>

	* g++.old-deja/g++.other/init5.C: Check dg-require-cxa-atexit.
	* g++.old-deja/g++.other/init18.C: Ditto.
	* g++.old-deja/g++.other/init19.C: Ditto.

Index: g++.old-deja/g++.other/init5.C
===================================================================
--- g++.old-deja/g++.other/init5.C	(revision 113771)
+++ g++.old-deja/g++.other/init5.C	(working copy)
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-require-cxa-atexit "" }
 // Objects must be destructed in decreasing cnt order
 // Original test attributed to James Kanze <jkanze@otelo.ibmmail.com>
 
Index: g++.old-deja/g++.other/init18.C
===================================================================
--- g++.old-deja/g++.other/init18.C	(revision 113771)
+++ g++.old-deja/g++.other/init18.C	(working copy)
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-require-cxa-atexit "" }
 
 #include <stdlib.h>
 
Index: g++.old-deja/g++.other/init19.C
===================================================================
--- g++.old-deja/g++.other/init19.C	(revision 113771)
+++ g++.old-deja/g++.other/init19.C	(working copy)
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-require-cxa-atexit "" }
 #include <stdlib.h>
 
 #define assert(x) do { if (! (x)) abort(); } while (0)


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