From e8eac44fe13688758fe147886d065e0050f0f9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Wed, 21 Jun 2023 09:19:40 +0200 Subject: [PATCH] Update StructureChain.cpp --- tests/StructureChain/StructureChain.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/StructureChain/StructureChain.cpp b/tests/StructureChain/StructureChain.cpp index 86b7639..455183e 100644 --- a/tests/StructureChain/StructureChain.cpp +++ b/tests/StructureChain/StructureChain.cpp @@ -67,6 +67,19 @@ int main( int /*argc*/, char ** /*argv*/ ) vk::PhysicalDevicePushDescriptorPropertiesKHR> sc7; +#if !defined(NDEBUG) + void * pNext = sc7.get().pNext; +#endif + sc7.assign( {} ); + assert( pNext == sc7.get().pNext ); + +#if !defined(NDEBUG) + void * pNext1 = sc7.get().pNext; +#endif + sc7.assign( {} ).assign( {} ); + assert( pNext == sc7.get().pNext ); + assert( pNext1 == sc7.get().pNext ); + // some checks on unmodified chains assert( sc7.isLinked() ); assert( sc7.isLinked() );