[PATCH] D88295: [Sema] Fix volatile check when test if a return object can be implicitly move

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 28 06:14:36 PDT 2020


aaronpuchert added inline comments.


================
Comment at: clang/test/SemaCXX/implicitly-movable.cpp:14
+
+private:
+  A(const A &);
----------------
aaronpuchert wrote:
> Is this testing what we want it to test? The private functions are just not part of the overload set, right?
> 
> I think you should make them public and `= delete` them.
Nevermind, private functions are part of the overload set, and compilation fails on master, so this is fine.


================
Comment at: clang/test/SemaCXX/implicitly-movable.cpp:24-27
+A test_normal() {
+  A a_move;
+  return a_move;
+}
----------------
There is probably already a test for that, but I'll leave that to you.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88295



More information about the cfe-commits mailing list