Static initialization order test.

This commit is contained in:
Bartosz Taudul 2018-08-13 12:13:28 +02:00
parent a15a287a6b
commit c4ea13dab5

View File

@ -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 );