mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +00:00
relationals: add missing virtual destructor (#1739)
`RelationalsFPTest` contains a vector of `RelTestBase` pointers to `RelTestParams` instances, so the base class destructor should be virtual to avoid undefined behaviour. Fixes https://github.com/KhronosGroup/OpenCL-CTS/issues/1731 Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
19f4fc3f3d
commit
abd556f7a2
@@ -32,6 +32,7 @@ template <typename T> using VerifyFunc = bool (*)(const T &, const T &);
|
|||||||
struct RelTestBase
|
struct RelTestBase
|
||||||
{
|
{
|
||||||
explicit RelTestBase(const ExplicitTypes &dt): dataType(dt) {}
|
explicit RelTestBase(const ExplicitTypes &dt): dataType(dt) {}
|
||||||
|
virtual ~RelTestBase() = default;
|
||||||
ExplicitTypes dataType;
|
ExplicitTypes dataType;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user