From c4ea13dab5b8251c5faee886e1173fc08bea04bd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 13 Aug 2018 12:13:28 +0200 Subject: [PATCH] Static initialization order test. --- test/test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 );