]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 18_support / headers / exception / synopsis.cc
index a66c015629196d5b08357925ee236b0b9d38395e..2c3dc4b12cc9b47d6e25a9855350824bd124f8cb 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-do compile }
+// { dg-do compile { target { c++11 && { ! c++23 } } } }
 
-// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007-2024 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -24,12 +24,14 @@ namespace std {
   class bad_exception;
 
   typedef void (*unexpected_handler)();
-  unexpected_handler set_unexpected(unexpected_handler  f ) throw();
+  unexpected_handler set_unexpected(unexpected_handler  f ) throw(); // { dg-warning "deprecated" { target c++11 } }
+  unexpected_handler get_unexpected() noexcept;
   void unexpected();
 
   typedef void (*terminate_handler)();
   terminate_handler set_terminate(terminate_handler  f ) throw();
-  void terminate();
+  terminate_handler get_terminate() noexcept;
+  void terminate() throw();
 
   bool uncaught_exception() throw();
 }