From 1a3c5c57396c8faacd18adb2bd830f6907c4d66f Mon Sep 17 00:00:00 2001
From: "Brad Payne (Vir Linden)" <vir@lindenlab.com>
Date: Wed, 17 Mar 2021 16:04:32 +0100
Subject: [PATCH] SL-14999 - test update

---
 indra/newview/tests/cppfeatures_test.cpp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/indra/newview/tests/cppfeatures_test.cpp b/indra/newview/tests/cppfeatures_test.cpp
index 8399bb12fff..67671dc65e0 100644
--- a/indra/newview/tests/cppfeatures_test.cpp
+++ b/indra/newview/tests/cppfeatures_test.cpp
@@ -229,8 +229,11 @@ void cpp_features_test_object_t::test<6>()
 class DefaultCopyOK
 {
 public:
-	DefaultCopyOK() {}
+	DefaultCopyOK(): mVal(123) {}
 	DefaultCopyOK(const DefaultCopyOK&) = default;
+	S32 val() const { return mVal; }
+private:
+	S32 mVal;
 };
 
 template<> template<>
@@ -239,6 +242,9 @@ void cpp_features_test_object_t::test<7>()
 	DefaultCopyOK d; // OK
 	DefaultCopyOK d2(d); // OK
 	DefaultCopyOK d3 = d; // OK
+	ensure("default copy d", d.val()==123);
+	ensure("default copy d2", d.val()==d2.val());
+	ensure("default copy d3", d.val()==d3.val());
 }
 
 
-- 
GitLab