Fix tests that fail with -std=gnu++98 or -std=gnu++11
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Jun 2019 12:13:42 +0000 (13:13 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 6 Jun 2019 12:13:42 +0000 (13:13 +0100)
commit061a745005d69e44d6ff50e3ee7fd5b21194c6ac
tree28359b4cfc5857210d78d24ea95e8ce988f4a995
parentd355635e6b96d5d9e67a526b6dfd534cd9a9dd57
Fix tests that fail with -std=gnu++98 or -std=gnu++11

* testsuite/18_support/set_terminate.cc: Do not run for C++98 mode.
* testsuite/18_support/set_unexpected.cc: Likewise.
* testsuite/20_util/is_nothrow_invocable/value.cc: Test converting to
void.
* testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix constexpr
function to be valid in C++11.
* testsuite/26_numerics/complex/proj.cc: Do not run for C++98 mode.
* testsuite/experimental/names.cc: Do not run for C++98 mode. Do not
include Library Fundamentals or Networking headers in C++11 mode.
* testsuite/ext/char8_t/atomic-1.cc: Do not run for C++98 mode.

From-SVN: r271999
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/18_support/set_terminate.cc
libstdc++-v3/testsuite/18_support/set_unexpected.cc
libstdc++-v3/testsuite/20_util/is_nothrow_invocable/value.cc
libstdc++-v3/testsuite/20_util/is_nothrow_invocable/value_ext.cc
libstdc++-v3/testsuite/26_numerics/complex/proj.cc
libstdc++-v3/testsuite/experimental/names.cc
libstdc++-v3/testsuite/ext/char8_t/atomic-1.cc