[libcxx-commits] [PATCH] D152571: Use the unoptimized routines for volatile source types

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 9 15:33:59 PDT 2023


philnik accepted this revision.
philnik added a comment.
This revision is now accepted and ready to land.

LGTM with comment addressed and green CI.



================
Comment at: libcxx/test/std/containers/sequences/vector/vector.cons/copy.pass.cpp:103-114
+std::vector<int> copy_from_volatile_src(volatile int *p, int n) {
+    std::vector<int> v(p, p + n);
+    return v;
+}
+
+void test_copy_from_volatile_src() {
+    int src[] = {1, 2, 3};
----------------
This should also work.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152571/new/

https://reviews.llvm.org/D152571



More information about the libcxx-commits mailing list