Home
last modified time | relevance | path

Searched defs:HasOpNewDelBoth (Results 1 – 1 of 1) sorted by relevance

/external/python/pybind11/tests/
Dtest_class.cpp272 struct HasOpNewDelBoth { in TEST_SUBMODULE() struct
273 std::uint32_t i[8]; in TEST_SUBMODULE()
274 static void *operator new(size_t s) { py::print("D new", s); return ::operator new(s); } in TEST_SUBMODULE()
275 … static void *operator new(size_t s, void *ptr) { py::print("D placement-new", s); return ptr; } in TEST_SUBMODULE()
276 static void operator delete(void *p) { py::print("D delete"); return ::operator delete(p); } in TEST_SUBMODULE()
277 …operator delete(void *p, size_t s) { py::print("D wrong delete", s); return ::operator delete(p); } in TEST_SUBMODULE()