[#BloombergLP-bsls-ProtocolTest-testVirtualDestructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/ProtocolTest.adoc[ProtocolTest]::testVirtualDestructor :relfileprefix: ../../../ :mrdocs: Return whether the protocol class being tested has a virtual destructor. == Synopsis Declared in `<bsls_protocoltest.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool testVirtualDestructor(); ---- == Description Return `true` (i.e., the test passed) if the protocol class being tested has a virtual destructor and return `false` (i.e., the test failed) otherwise. Increase the `failures` count and set `lastStatus` to `false` on failure. == Return Value `true` if the protocol has a virtual destructor; `false` otherwise [.small]#Created with https://www.mrdocs.com[MrDocs]#