commit e203f2dcdf077fcf61b4d6b3f8e399c25cc44dfb
Author: Jason Merrill <jason@redhat.com>
Date: Thu Feb 14 11:15:28 2013 -0500
* testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
test if unsupported.
@@ -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);
+}
+#else
+int main() {}
#endif
-}