diff options
author | Mark de Wever <koraq@xs4all.nl> | 2022-09-28 19:58:05 +0200 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2022-09-29 17:28:19 +0200 |
commit | eb61cf373c7a688193456ac83c85b8554d304f28 (patch) | |
tree | 1ad4600dec8bdd646fb17b8dfe7bd12a627ca51b | |
parent | abc362a1077b9cb4186e3e53a616589c7fed4387 (diff) | |
download | llvm-eb61cf373c7a688193456ac83c85b8554d304f28.zip llvm-eb61cf373c7a688193456ac83c85b8554d304f28.tar.gz llvm-eb61cf373c7a688193456ac83c85b8554d304f28.tar.bz2 |
[NFC][libc++][test] Enables variant test.
Noticed this while working on D133326. Let's see whehter all compilers
now support this feature.
Reviewed By: #libc, philnik, ldionne
Differential Revision: https://reviews.llvm.org/D134818
-rw-r--r-- | libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp b/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp index f0d539c9..39a7b9b 100644 --- a/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp +++ b/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp @@ -253,15 +253,11 @@ int main(int, char**) { test_copy_ctor_valueless_by_exception(); test_copy_ctor_sfinae(); test_constexpr_copy_ctor(); -#if 0 -// disable this for the moment; it fails on older compilers. -// Need to figure out which compilers will support it. -{ // This is the motivating example from P0739R0 - std::variant<int, double> v1(3); - std::variant v2 = v1; - (void) v2; -} -#endif + { // This is the motivating example from P0739R0 + std::variant<int, double> v1(3); + std::variant v2 = v1; + (void)v2; + } return 0; } |