[PATCH] D48807: Add llvm::Any
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 16 11:36:58 PDT 2018
dblaikie accepted this revision.
dblaikie added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/unittests/ADT/AnyTest.cpp:114-115
+ // in the process.
+ EXPECT_EQ(8, llvm::any_cast<int>(std::move(E)));
+ EXPECT_TRUE(E.hasValue());
+
----------------
Is there a test (didn't spot it) that demonstrates that the result of llvm::any_cast on an rvalue Any is the value moved-from the the Any, and that the Any contains the original move-from?
https://reviews.llvm.org/D48807
More information about the llvm-commits
mailing list