[llvm] Unittest for Error forwarding, follow-up to PR #92208 (PR #92314)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 10:45:42 PDT 2024


================
@@ -1172,6 +1173,7 @@ TEST(Error, ForwardToExpected) {
   };
   std::optional<int> MaybeV;
   EXPECT_THAT_ERROR(ExpectedReturningFct(true).moveInto(MaybeV), Failed());
----------------
mtrofin wrote:

Error->Error forwarding worked. Error->Expected<T> didn't (if I understand your question right)

https://github.com/llvm/llvm-project/pull/92314


More information about the llvm-commits mailing list