MCPcopy Create free account
hub / github.com/catboost/catboost / Y_UNIT_TEST

Function Y_UNIT_TEST

util/system/sanitizers_ut.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6Y_UNIT_TEST_SUITE(Sanitizers) {
7 Y_UNIT_TEST(MarkAsIntentionallyLeaked) {
8 auto* p1 = new i32[100];
9 NSan::MarkAsIntentionallyLeaked(p1);
10
11 auto* p2 = y_allocate(123);
12 NSan::MarkAsIntentionallyLeaked(p2);
13 }
14
15} // Y_UNIT_TEST_SUITE(Sanitizers)

Callers

nothing calls this directly

Calls 2

y_allocateFunction · 0.85

Tested by

no test coverage detected