[libcxx-commits] [PATCH] D54966: Implement P1007R3 `std::assume_aligned`

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 25 16:46:35 PST 2019


zoecarver added inline comments.
Herald added a subscriber: jdoerfert.


================
Comment at: test/std/utilities/memory/ptr.align/assume_aligned.fail.cpp:24
+    int *p = nullptr;
+    std::assume_aligned(p, 4);  // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}}
+}
----------------
This should be `std::assume_aligned<4>(p);`.


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

https://reviews.llvm.org/D54966





More information about the libcxx-commits mailing list