diff options
author | Casey Carter <Casey@Carter.net> | 2019-04-25 18:36:29 +0000 |
---|---|---|
committer | Casey Carter <Casey@Carter.net> | 2019-04-25 18:36:29 +0000 |
commit | 413732354d2a304cf312d9cc7227c80067d21d36 (patch) | |
tree | 058d9ff5c06d1a7f8335af5bdac4af3340143d85 /lldb/packages/Python/lldbsuite/test/sample_test/TestSampleTest.py | |
parent | f9c30eddd013452dafe3649c3c05a74530a43c2d (diff) | |
download | bcm5719-llvm-413732354d2a304cf312d9cc7227c80067d21d36.tar.gz bcm5719-llvm-413732354d2a304cf312d9cc7227c80067d21d36.zip |
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/sample_test/TestSampleTest.py')
0 files changed, 0 insertions, 0 deletions