diff --git a/indra/newview/tests/cppfeatures_test.cpp b/indra/newview/tests/cppfeatures_test.cpp
index 923bb1e1b260ab7929ba2b31f58da6ac1b28d71b..ffd58cfccde2d7db8f74ac4ecb964d24fbf5931b 100644
--- a/indra/newview/tests/cppfeatures_test.cpp
+++ b/indra/newview/tests/cppfeatures_test.cpp
@@ -137,6 +137,7 @@ void cpp_features_test_object_t::test<3>()
 class Foo
 {
 public:
+    virtual ~Foo() = default;
 	virtual bool is_happy() const = 0;
 };
 
@@ -166,6 +167,7 @@ void cpp_features_test_object_t::test<4>()
 class Vehicle
 {
 public:
+    virtual ~Vehicle() = default;
 	virtual bool has_wheels() const = 0;
 };