Adds helper functions for ScopedPtr
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2021-08-29 16:23:04 +02:00
1 parent b58b8537b5
commit 54c5422cda
3 files changed
+23 -5

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#ifdef TESTS_BUILD
#include "../extern/doctest.hpp"
#include "../src/Memory/Memory.hpp"
using namespace ArbUt;
TEST_CASE("Scoped Pointer deletes child after out of scope") {
auto a = ScopedPtr<uint32_t>(new uint32_t(100));
}
#endif