quick_exit.cc: #if out the whole test if unsupported.
authorJason Merrill <jason@redhat.com>
Fri, 15 Feb 2013 01:26:54 +0000 (20:26 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 Feb 2013 01:26:54 +0000 (20:26 -0500)
* testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
test if unsupported.

From-SVN: r196066

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/18_support/quick_exit/quick_exit.cc

index c46b95df9b06d3c98d72a9b42e42b8a7fefdac95..8d61a2d6e7d288ae950526161b6b31528086ae94 100644 (file)
@@ -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
index 8e55890bacce2b2bdf60b0685c0daef3332a0e7b..b91cbe22e5b3e6db1e547ae262f50453128e1770 100644 (file)
@@ -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