From: Mark de Wever Date: Wed, 28 Sep 2022 17:58:05 +0000 (+0200) Subject: [NFC][libc++][test] Enables variant test. X-Git-Tag: upstream/17.0.6~32104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb61cf373c7a688193456ac83c85b8554d304f28;p=platform%2Fupstream%2Fllvm.git [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 --- 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 v1(3); - std::variant v2 = v1; - (void) v2; -} -#endif + { // This is the motivating example from P0739R0 + std::variant v1(3); + std::variant v2 = v1; + (void)v2; + } return 0; }