[PATCH] D34331: func.wrap.func.con: Unset function before destroying anything
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 9 06:14:52 PDT 2017
EricWF added a comment.
@dexonsmith Mind if I hijack this and check in your changes to `<functional>` with my tests?
================
Comment at: libcxx/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp:1
+//===----------------------------------------------------------------------===//
+//
----------------
It seems like this test is testing behavior that should be required by the standard, right?
If so it should live under `test/std`.
================
Comment at: libcxx/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp:25
+ ~A() {
+ asm("");
+ if (cancel)
----------------
Is `asm("")` just to prevent optimizations? If so please use `DoNotOptimize` from `test_macros.h`.
https://reviews.llvm.org/D34331
More information about the cfe-commits
mailing list