diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-12 21:16:42 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-26 09:44:19 +0300 |
commit | 80ced2256efb230c04b8cb443165ed321f7b5eda (patch) | |
tree | b8312c15b65c6802a7b93a0a9c0a28f18dde780d /tests | |
parent | bd30b14992982cdaf2130f0ee3c920044b61c14c (diff) | |
download | bdwgc-80ced2256efb230c04b8cb443165ed321f7b5eda.tar.gz |
Eliminate 'non-virtual destructor for class with inheritors' CSA warning
* tests/test_cpp.cc (A): Add virtual empty destructor.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cpp.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index 216e5231..176b5266 100644 --- a/tests/test_cpp.cc +++ b/tests/test_cpp.cc @@ -89,6 +89,7 @@ class A {public: GC_ATTR_EXPLICIT A( int iArg ): i( iArg ) {} void Test( int iArg ) { my_assert( i == iArg );} + virtual ~A() {} int i;}; |