summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-15 01:26:54 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-15 01:26:54 +0000
commit133669af92b5a2d2a729be42607c10bdc7c3cfe8 (patch)
treed3b014334cd9dea223f51aad1f7a131572b16a2c /libstdc++-v3
parentdc78d83aa912a7d6f7d99a9fa41430d2487a7dd0 (diff)
downloadgcc-133669af92b5a2d2a729be42607c10bdc7c3cfe8.tar.gz
* testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
test if unsupported. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196066 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/18_support/quick_exit/quick_exit.cc6
2 files changed, 9 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index c46b95df9b0..8d61a2d6e7d 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-14 Jason Merrill <jason@redhat.com>
+
+ * testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
+ test if unsupported.
+
2013-02-13 Marc Glisse <marc.glisse@inria.fr>
PR libstdc++/56111
diff --git a/libstdc++-v3/testsuite/18_support/quick_exit/quick_exit.cc b/libstdc++-v3/testsuite/18_support/quick_exit/quick_exit.cc
index 8e55890bacc..b91cbe22e5b 100644
--- a/libstdc++-v3/testsuite/18_support/quick_exit/quick_exit.cc
+++ b/libstdc++-v3/testsuite/18_support/quick_exit/quick_exit.cc
@@ -21,6 +21,7 @@
// 18.5 - Start and termination
+#if defined(_GLIBCXX_HAVE_AT_QUICK_EXIT) && defined(_GLIBCXX_HAVE_QUICK_EXIT)
#include <cstdlib>
void handler()
@@ -35,9 +36,10 @@ void wrong_handler()
int main()
{
-#if defined(_GLIBCXX_HAVE_AT_QUICK_EXIT) && defined(_GLIBCXX_HAVE_QUICK_EXIT)
std::at_quick_exit (handler);
std::atexit (wrong_handler);
std::quick_exit (1);
-#endif
}
+#else
+int main() {}
+#endif