[libcxx-commits] [PATCH] D134818: [NFC][libc++][test] Enables variant test.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 28 11:10:26 PDT 2022
Mordante updated this revision to Diff 463627.
Mordante added a comment.
Undo last change, was to the wrong diff.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134818/new/
https://reviews.llvm.org/D134818
Files:
libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp
Index: libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp
===================================================================
--- libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp
+++ libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp
@@ -253,15 +253,11 @@
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134818.463627.patch
Type: text/x-patch
Size: 856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220928/b752f2d1/attachment-0001.bin>
More information about the libcxx-commits
mailing list