summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc')
-rw-r--r--libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc b/libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc
index 3a417b2ab29..acbd8327e80 100644
--- a/libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc
+++ b/libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++11" }
// Copyright (C) 2007-2013 Free Software Foundation, Inc.
//
@@ -25,10 +26,12 @@ namespace std {
typedef void (*unexpected_handler)();
unexpected_handler set_unexpected(unexpected_handler f ) throw();
+ unexpected_handler get_unexpected() noexcept;
void unexpected();
typedef void (*terminate_handler)();
terminate_handler set_terminate(terminate_handler f ) throw();
+ terminate_handler get_terminate() noexcept;
void terminate() throw();
bool uncaught_exception() throw();
OpenPOWER on IntegriCloud