Lines Matching +defs:env +defs:fail
56 static inline void fail(const char *msg, ...) __attribute__((noreturn));
57 static inline void fail(const char *msg, ...)
76 (fail("failed assertion '%s' at %s:%u", cond, __FILE__, __LINE__))
107 // complain to output, but don't fail the test
198 inline void* operator new(std::size_t) throw (std::bad_alloc) { fail("called global operator new"); }
199 inline void* operator new[](std::size_t) throw (std::bad_alloc) { fail("called global operator new[]"); }
200 inline void* operator new(std::size_t, const std::nothrow_t&) throw() { fail("called global operator new(nothrow)"); }
201 inline void* operator new[](std::size_t, const std::nothrow_t&) throw() { fail("called global operator new[](nothrow)"); }
202 inline void operator delete(void*) throw() { fail("called global operator delete"); }
203 inline void operator delete[](void*) throw() { fail("called global operator delete[]"); }
204 inline void operator delete(void*, const std::nothrow_t&) throw() { fail("called global operator delete(nothrow)"); }
205 inline void operator delete[](void*, const std::nothrow_t&) throw() { fail("called global operator delete[](nothrow)"); }
297 const char *env = getenv("GUARDMALLOC");
298 return (env && 0 == strcmp(env, "YES"));