Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test.cpp b/test/test.cpp
index 2c184e0c..8ed59412 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -6,6 +6,17 @@
#include "../Tracy.hpp"
#include "../common/TracySystem.hpp"
+struct static_init_test_t
+{
+ static_init_test_t()
+ {
+ ZoneScoped;
+ new char[64*1024];
+ }
+};
+
+static const static_init_test_t static_init_test;
+
void* operator new( std::size_t count )
{
auto ptr = malloc( count );