This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: Run init tests only when __cxa_atexit is supported.
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 May 2006 13:12:03 -0700 (PDT)
- Subject: Patch: Run init tests only when __cxa_atexit is supported.
- Reply-to: sje at cup dot hp dot com
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)