diff options
author | Pavel Labath <labath@google.com> | 2017-06-15 11:23:26 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-06-15 11:23:26 +0000 |
commit | 3adc40876eb873f4cff07202bd10840c10ef1ffc (patch) | |
tree | 09e14cc40fea3ad49e40d723f3075d9a2f1e9033 /lldb/unittests/Utility | |
parent | 054243f75a189b32f58a73bd3d2fd925417e3faa (diff) | |
download | bcm5719-llvm-3adc40876eb873f4cff07202bd10840c10ef1ffc.tar.gz bcm5719-llvm-3adc40876eb873f4cff07202bd10840c10ef1ffc.zip |
Add llvm::Error assignment operator to Status class
This enables writing "status = std::move(some_llvm_error)".
llvm-svn: 305462
Diffstat (limited to 'lldb/unittests/Utility')
-rw-r--r-- | lldb/unittests/Utility/StatusTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/unittests/Utility/StatusTest.cpp b/lldb/unittests/Utility/StatusTest.cpp index 03e2368c7b1..b3f5182a5d8 100644 --- a/lldb/unittests/Utility/StatusTest.cpp +++ b/lldb/unittests/Utility/StatusTest.cpp @@ -33,6 +33,9 @@ TEST(StatusTest, ErrorConstructor) { EXPECT_TRUE(foo.Fail()); EXPECT_EQ(eErrorTypeGeneric, foo.GetType()); EXPECT_STREQ("foo", foo.AsCString()); + + foo = llvm::Error::success(); + EXPECT_TRUE(foo.Success()); } TEST(StatusTest, ErrorConversion) { |