From 52e8a008e923f3a63c39421bfc494053f264ca38 Mon Sep 17 00:00:00 2001 From: Viatorus Date: Mon, 14 Oct 2024 22:06:04 +0200 Subject: [PATCH] fnortti --- CMakePresets.json | 2 +- test/unit_test/test_buffer.cpp | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakePresets.json b/CMakePresets.json index f7bd6e0..eb7f666 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -235,7 +235,7 @@ ], "cacheVariables": { "BUILD_LINK_TEST": "ON", - "CMAKE_CXX_FLAGS": "$env{CXX_FLAGS} -O2 -mcpu=cortex-m33 -mthumb -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fno-canonical-system-headers -no-canonical-prefixes -fno-exceptions -=no-rtti", + "CMAKE_CXX_FLAGS": "$env{CXX_FLAGS} -O2 -mcpu=cortex-m33 -mthumb -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fno-canonical-system-headers -no-canonical-prefixes -fno-exceptions -fno-rtti", "CMAKE_EXE_LINKER_FLAGS": "-mcpu=cortex-m7 -mthumb -Wl,--gc-sections" } } diff --git a/test/unit_test/test_buffer.cpp b/test/unit_test/test_buffer.cpp index 722ed89..ed05cc7 100644 --- a/test/unit_test/test_buffer.cpp +++ b/test/unit_test/test_buffer.cpp @@ -456,6 +456,15 @@ TEST_CASE("static_buffer", "[buffer]") { emio::static_buffer<542> buf; + { + emio::buffer* b = new emio::static_buffer<542>; + delete b; + } + { + emio::static_buffer<542>* b = new emio::static_buffer<542>; + delete b; + } + if (checkpoint == 0) { check_gang_of_5(buf, true); return;