aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Paczkowski (trzeci.eu) <kontakt@trzeci.eu>2019-12-20 09:45:28 +0100
committerGitHub <noreply@github.com>2019-12-20 09:45:28 +0100
commitcc05a3ca014bdc25eaf987672004b36fa1ceeb36 (patch)
treec806b658c50143b5bb2cb7af9181d8fb2e10f5d3
parent05701fee2896329009cb040496bd0d6714c9a78b (diff)
downloadgoogletest-cc05a3ca014bdc25eaf987672004b36fa1ceeb36.tar.gz
googletest-cc05a3ca014bdc25eaf987672004b36fa1ceeb36.tar.bz2
googletest-cc05a3ca014bdc25eaf987672004b36fa1ceeb36.zip
Define default destructor for test classes
-rw-r--r--googletest/include/gtest/internal/gtest-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/include/gtest/internal/gtest-internal.h b/googletest/include/gtest/internal/gtest-internal.h
index ce081aa2..ff2ff4ba 100644
--- a/googletest/include/gtest/internal/gtest-internal.h
+++ b/googletest/include/gtest/internal/gtest-internal.h
@@ -1389,6 +1389,7 @@ constexpr bool InstantiateTypedTestCase_P_IsDeprecated() { return true; }
: public parent_class { \
public: \
GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() {} \
+ ~GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() = default; \
GTEST_DISALLOW_COPY_AND_ASSIGN_(GTEST_TEST_CLASS_NAME_(test_suite_name, \
test_name)); \
GTEST_DISALLOW_MOVE_AND_ASSIGN_(GTEST_TEST_CLASS_NAME_(test_suite_name, \