Avoid "function 'testDynamicCast()::S1::~S1' has internal linkage...

...but is not defined"

Change-Id: Ib1350d5d34eef0d544ca8f436ae63c693b7d2f5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155354
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2023-08-04 20:21:25 +02:00
parent ed5d949632
commit be58058b0e

View File

@@ -348,7 +348,7 @@ void testSuspiciousReinterpretCast() {
void testDynamicCast() {
struct S1 { virtual ~S1(); };
struct S1 { virtual ~S1() {} };
struct S2 final: S1 {};
struct S3: S1 {};