]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix 18_support/exception_ptr/60612-*.cc on non-C99 targets
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 31 Mar 2014 13:14:12 +0000 (13:14 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 31 Mar 2014 13:14:12 +0000 (13:14 +0000)
* testsuite/18_support/exception_ptr/60612-terminate.cc
(terminate, f): Wrap in _GLIBCXX_USE_C99.
* testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.

From-SVN: r208958

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/18_support/exception_ptr/60612-terminate.cc
libstdc++-v3/testsuite/18_support/exception_ptr/60612-unexpected.cc

index 3026dc01cbef134332049892724175eddc26e185..37a9a1027751458ed071c62a7969ba3a4713be32 100644 (file)
@@ -1,3 +1,9 @@
+2014-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/18_support/exception_ptr/60612-terminate.cc
+       (terminate, f): Wrap in _GLIBCXX_USE_C99.
+       * testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.
+
 2014-03-27  Jonathan Wakely  <jwakely@redhat.com>
 
        * doc/xml/manual/io.xml (std.io.objects): Additional markup.
index ec5940d6b2173ca9de9d6ee689a1493f66f3a193..19f8fd23f641419022bc4f05b641fcb32e3b065c 100644 (file)
@@ -23,6 +23,7 @@
 #include <exception>
 #include <stdlib.h>
 
+#ifdef _GLIBCXX_USE_C99
 void terminate() { _Exit(0); }
 
 void f() noexcept
@@ -34,8 +35,12 @@ void f() noexcept
     std::rethrow_exception(std::current_exception());
   }
 }
+#endif
 
 int main()
 {
+#ifdef _GLIBCXX_USE_C99
   f();
+#endif
+  return 0;
 }
index 3f7e2cf379de218835aed081282be2a03ae29a46..708f7486b47bfbdaa16edadf6d245913d9e18c0e 100644 (file)
@@ -23,6 +23,7 @@
 #include <exception>
 #include <stdlib.h>
 
+#ifdef _GLIBCXX_USE_C99
 void unexpected() { _Exit(0); }
 
 void f() throw()
@@ -34,8 +35,11 @@ void f() throw()
     std::rethrow_exception(std::current_exception());
   }
 }
+#endif
 
 int main()
 {
+#ifdef _GLIBCXX_USE_C99
   f();
+#endif
 }