[PATCH] D78944: [libc++][test] Disable test for extension that's unsupportable in C++20
Casey Carter via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 11:49:30 PDT 2020
CaseyCarter updated this revision to Diff 260391.
CaseyCarter added a comment.
Review comments.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78944/new/
https://reviews.llvm.org/D78944
Files:
libcxx/test/std/containers/associative/map/map.cons/default_recursive.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp
Index: libcxx/test/std/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp
===================================================================
--- libcxx/test/std/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp
+++ libcxx/test/std/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp
@@ -21,12 +21,11 @@
std::multimap<int, X> m;
std::multimap<int, X>::iterator i;
std::multimap<int, X>::const_iterator ci;
+#if TEST_STD_VER <= 17
+ // These reverse_iterator specializations require X to be complete in C++20.
std::multimap<int, X>::reverse_iterator ri;
std::multimap<int, X>::const_reverse_iterator cri;
+#endif // TEST_STD_VER <= 17
};
-int main(int, char**)
-{
-
- return 0;
-}
+int main(int, char**) { return 0; }
Index: libcxx/test/std/containers/associative/map/map.cons/default_recursive.pass.cpp
===================================================================
--- libcxx/test/std/containers/associative/map/map.cons/default_recursive.pass.cpp
+++ libcxx/test/std/containers/associative/map/map.cons/default_recursive.pass.cpp
@@ -21,12 +21,11 @@
std::map<int, X> m;
std::map<int, X>::iterator i;
std::map<int, X>::const_iterator ci;
+#if TEST_STD_VER <= 17
+ // These reverse_iterator specializations require X to be complete in C++20.
std::map<int, X>::reverse_iterator ri;
std::map<int, X>::const_reverse_iterator cri;
+#endif // TEST_STD_VER <= 17
};
-int main(int, char**)
-{
-
- return 0;
-}
+int main(int, char**) { return 0; }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78944.260391.patch
Type: text/x-patch
Size: 1575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200427/97a92852/attachment.bin>
More information about the cfe-commits
mailing list