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:
authorBartosz Taudul <wolf.pld@gmail.com>2018-08-13 13:13:28 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2018-08-13 13:13:28 +0300
commitc4ea13dab5b8251c5faee886e1173fc08bea04bd (patch)
tree3cb96e58c2c6ec8a1ff87b1e90ff2d37052e83ef /test
parenta15a287a6b93dd6aeca35fc4526e694f8ca99136 (diff)
Static initialization order test.
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 );