Skip to content

Commit

Permalink
fnortti
Browse files Browse the repository at this point in the history
  • Loading branch information
Viatorus committed Oct 14, 2024
1 parent 9b2128d commit 52e8a00
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
9 changes: 9 additions & 0 deletions test/unit_test/test_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 52e8a00

Please sign in to comment.