Searched refs:bad_alloc (Results 1 - 25 of 98) sorted by relevance

1234

/external/libcxx/test/language.support/support.dynamic/alloc.errors/bad.alloc/
H A Dbad_alloc.pass.cpp10 // test bad_alloc
18 static_assert((std::is_base_of<std::exception, std::bad_alloc>::value),
19 "std::is_base_of<std::exception, std::bad_alloc>::value");
20 static_assert(std::is_polymorphic<std::bad_alloc>::value,
21 "std::is_polymorphic<std::bad_alloc>::value");
22 std::bad_alloc b;
23 std::bad_alloc b2 = b;
H A DAndroid.mk19 test_name := language.support/support.dynamic/alloc.errors/bad.alloc/bad_alloc
20 test_src := bad_alloc.pass.cpp
/external/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/
H A Dp2-noexceptions.cpp4 class bad_alloc { }; class in namespace:std
H A Dp2.cpp17 class bad_alloc { }; class in namespace:std
22 void* operator new(std::size_t) throw(std::bad_alloc); // expected-note{{previous declaration}}
23 void* operator new[](std::size_t) throw(std::bad_alloc);
27 void* operator new(std::size_t); // expected-warning{{'operator new' is missing exception specification 'throw(std::bad_alloc)'}}
/external/stlport/test/compiler/
H A Deh.cc23 catch (bad_alloc const&) {
28 // CPPUNIT_ASSERT( false && "Not bad_alloc exception thrown." );
38 // throw bad_alloc();
40 catch ( bad_alloc const & ) {
52 throw bad_alloc();
54 catch ( bad_alloc& ) {
/external/deqp/framework/delibs/decpp/
H A DdeThreadLocal.cpp35 throw std::bad_alloc();
H A DdeMemPool.hpp71 throw std::bad_alloc();
78 throw std::bad_alloc();
92 throw std::bad_alloc();
102 throw std::bad_alloc();
H A DdeMutex.cpp46 throw std::bad_alloc();
H A DdeSemaphore.cpp45 throw std::bad_alloc();
H A DdeThread.cpp88 throw std::bad_alloc();
/external/libcxx/src/
H A Dnew.cpp48 throw(std::bad_alloc)
63 throw std::bad_alloc();
94 throw(std::bad_alloc)
177 bad_alloc::bad_alloc() _NOEXCEPT
183 bad_alloc::~bad_alloc() _NOEXCEPT
188 bad_alloc::what() const _NOEXCEPT
190 return "std::bad_alloc";
233 throw bad_alloc();
[all...]
/external/libcxxabi/src/
H A Dcxa_new_delete.cpp26 throws bad_alloc.
38 throw(std::bad_alloc)
50 throw std::bad_alloc();
96 throw(std::bad_alloc)
201 // bad_alloc
203 bad_alloc::bad_alloc() _NOEXCEPT
207 bad_alloc::~bad_alloc() _NOEXCEPT
212 bad_alloc
[all...]
/external/stlport/stlport/stl/
H A D_new.h71 * STLport own bad_alloc exception to be used if the native C++ library
75 class bad_alloc : public exception { class in inherits:exception
77 bad_alloc () _STLP_NOTHROW_INHERENTLY { }
78 bad_alloc(const bad_alloc&) _STLP_NOTHROW_INHERENTLY { }
79 bad_alloc& operator=(const bad_alloc&) _STLP_NOTHROW_INHERENTLY {return *this;}
80 ~bad_alloc () _STLP_NOTHROW_INHERENTLY { }
93 using _STLP_VENDOR_EXCEPT_STD::bad_alloc;
118 # define _STLP_THROW_BAD_ALLOC _STLP_THROW(_STLP_STD::bad_alloc())
[all...]
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
H A Dnullptr_t_deleter_throw.pass.cpp35 void* operator new(std::size_t s) throw(std::bad_alloc)
38 throw std::bad_alloc();
55 catch (std::bad_alloc&)
H A Dpointer_deleter_throw.pass.cpp35 void* operator new(std::size_t s) throw(std::bad_alloc)
38 throw std::bad_alloc();
56 catch (std::bad_alloc&)
H A Dpointer_throw.pass.cpp32 void* operator new(std::size_t s) throw(std::bad_alloc)
35 throw std::bad_alloc();
55 catch (std::bad_alloc&)
/external/clang/test/CXX/drs/
H A Ddr412.cpp1 // RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT="throw()" -DBAD_ALLOC="throw(std::bad_alloc)"
11 namespace std { struct bad_alloc {}; } struct in namespace:std
/external/clang/test/CXX/except/except.spec/
H A Dp3.cpp98 // with a throw(bad_alloc) spec, because C++0x makes an incompatible change
100 extern "C++" { namespace std { class bad_alloc {}; } } class in namespace:std
102 void* operator new(mysize_t) throw(std::bad_alloc);
105 void* operator new[](mysize_t) throw(std::bad_alloc);
/external/libcxx/test/language.support/support.dynamic/alloc.errors/new.badlength/
H A Dbad_array_length.pass.cpp19 static_assert((std::is_base_of<std::bad_alloc, std::bad_array_length>::value),
20 "std::is_base_of<std::bad_alloc, std::bad_array_length>::value");
H A Dbad_array_new_length.pass.cpp18 static_assert((std::is_base_of<std::bad_alloc, std::bad_array_new_length>::value),
19 "std::is_base_of<std::bad_alloc, std::bad_array_new_length>::value");
/external/valgrind/main/massif/tests/
H A Doverloaded-new.cpp17 __attribute__((noinline)) void* operator new (std::size_t n) throw (std::bad_alloc)
27 __attribute__((noinline)) void* operator new[] (std::size_t n) throw (std::bad_alloc)
/external/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/
H A Dnew_array.pass.cpp41 catch (std::bad_alloc&)
H A Dnew_array_replace.pass.cpp20 void* operator new(std::size_t s) throw(std::bad_alloc)
/external/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/
H A Dnew.pass.cpp41 catch (std::bad_alloc&)
H A Dnew_replace.pass.cpp20 void* operator new(std::size_t s) throw(std::bad_alloc)

Completed in 9781 milliseconds

1234