sanitizers_ut.cpp 379 B

123456789101112131415
  1. #include "sanitizers.h"
  2. #include "sys_alloc.h"
  3. #include <library/cpp/testing/unittest/registar.h>
  4. Y_UNIT_TEST_SUITE(Sanitizers) {
  5. Y_UNIT_TEST(MarkAsIntentionallyLeaked) {
  6. auto* p1 = new i32[100];
  7. NSan::MarkAsIntentionallyLeaked(p1);
  8. auto* p2 = y_allocate(123);
  9. NSan::MarkAsIntentionallyLeaked(p2);
  10. }
  11. } // Y_UNIT_TEST_SUITE(Sanitizers)