summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Utility
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-06-15 11:23:26 +0000
committerPavel Labath <labath@google.com>2017-06-15 11:23:26 +0000
commit3adc40876eb873f4cff07202bd10840c10ef1ffc (patch)
tree09e14cc40fea3ad49e40d723f3075d9a2f1e9033 /lldb/unittests/Utility
parent054243f75a189b32f58a73bd3d2fd925417e3faa (diff)
downloadbcm5719-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.cpp3
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) {
OpenPOWER on IntegriCloud