llvm-project/libcxx/test/std/utilities/variant
Casey Carter 413732354d [libc++][test] Fix noexcept assertions in variant's get tests
All constant expressions are non-potentially-throwing in C++14, but that is *not* the case in C++17. Change these tests of the `variant`-flavored overloads of `std::get` to expect the correct behavior when the compiler is not GCC or is GCC 9+.

Credit to Jonathan Wakely for providing an improved version of my initial change that validates the incorrect behavior on GCC < 9 as well as validating the correct behavior on other compilers.

Differential Revision: https://reviews.llvm.org/D61033

llvm-svn: 359220
2019-04-25 18:36:29 +00:00
..
variant.bad_variant_access [libc++] Fix XFAILs when exceptions are disabled 2019-02-05 20:55:23 +00:00
variant.general Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant.get [libc++][test] Fix noexcept assertions in variant's get tests 2019-04-25 18:36:29 +00:00
variant.hash Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant.helpers Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant.monostate Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant.monostate.relops Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant.relops Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant.synopsis Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant.variant [libc++] Fix XFAILs on macOS when exceptions are disabled 2019-02-05 20:11:58 +00:00
variant.visit [libc++] Fix XFAILs on macOS when exceptions are disabled 2019-02-05 20:11:58 +00:00