diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2018-08-13 13:13:28 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2018-08-13 13:13:28 +0300 |
commit | c4ea13dab5b8251c5faee886e1173fc08bea04bd (patch) | |
tree | 3cb96e58c2c6ec8a1ff87b1e90ff2d37052e83ef /test | |
parent | a15a287a6b93dd6aeca35fc4526e694f8ca99136 (diff) |
Static initialization order test.
Diffstat (limited to 'test')
-rw-r--r-- | test/test.cpp | 11 |
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 ); |