/external/libcxx/test/std/language.support/support.dynamic/alloc.errors/bad.alloc/ |
bad_alloc.pass.cpp | 10 // 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;
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.dynamic/alloc.errors/bad.alloc/ |
bad_alloc.pass.cpp | 10 // 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;
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/language.support/support.dynamic/alloc.errors/bad.alloc/ |
bad_alloc.pass.cpp | 10 // 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;
|
/external/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/ |
p2-noexceptions.cpp | 4 class bad_alloc { }; class in namespace:std
|
p2.cpp | 17 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/deqp/framework/delibs/decpp/ |
deThreadLocal.cpp | 35 throw std::bad_alloc();
|
/prebuilts/ndk/r11/sources/cxx-stl/gabi++/src/ |
new.cc | 44 bad_alloc::bad_alloc() _GABIXX_NOEXCEPT { 47 bad_alloc::~bad_alloc() _GABIXX_NOEXCEPT { 50 const char* bad_alloc::what() const _GABIXX_NOEXCEPT { 51 return "std::bad_alloc"; 96 void* operator new(std::size_t size) throw(std::bad_alloc) { 105 throw std::bad_alloc(); 117 } catch (const std::bad_alloc&) { 123 void* operator new[](std::size_t size) throw(std::bad_alloc) { [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/gabi++/src/ |
new.cc | 44 bad_alloc::bad_alloc() _GABIXX_NOEXCEPT { 47 bad_alloc::~bad_alloc() _GABIXX_NOEXCEPT { 50 const char* bad_alloc::what() const _GABIXX_NOEXCEPT { 51 return "std::bad_alloc"; 96 void* operator new(std::size_t size) throw(std::bad_alloc) { 105 throw std::bad_alloc(); 117 } catch (const std::bad_alloc&) { 123 void* operator new[](std::size_t size) throw(std::bad_alloc) { [all...] |
/prebuilts/ndk/r10/sources/cxx-stl/stlport/stlport/stl/ |
_new.h | 71 * 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...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/ |
cxa_new_delete.cpp | 26 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::what() const _NOEXCEP [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/stlport/stlport/stl/ |
_new.h | 71 * 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...] |
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++abi/src/ |
cxa_new_delete.cpp | 26 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::what() const _NOEXCEP [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/stlport/stlport/stl/ |
_new.h | 71 * 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...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/ |
nullptr_t_deleter_throw.pass.cpp | 35 void* operator new(std::size_t s) throw(std::bad_alloc) 38 throw std::bad_alloc(); 55 catch (std::bad_alloc&)
|
pointer_throw.pass.cpp | 32 void* operator new(std::size_t s) throw(std::bad_alloc) 35 throw std::bad_alloc(); 55 catch (std::bad_alloc&)
|
pointer_deleter_throw.pass.cpp | 35 void* operator new(std::size_t s) throw(std::bad_alloc) 38 throw std::bad_alloc(); 56 catch (std::bad_alloc&)
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/ |
nullptr_t_deleter_throw.pass.cpp | 38 void* operator new(std::size_t s) throw(std::bad_alloc) 41 throw std::bad_alloc(); 58 catch (std::bad_alloc&)
|
pointer_throw.pass.cpp | 35 void* operator new(std::size_t s) throw(std::bad_alloc) 38 throw std::bad_alloc(); 58 catch (std::bad_alloc&)
|
/toolchain/binutils/binutils-2.25/ld/testsuite/ld-elf/ |
new.cc | 3 using std::bad_alloc; 21 operator new (std::size_t sz) throw (std::bad_alloc) 38 operator new[] (std::size_t sz) throw (std::bad_alloc)
|
/external/clang/test/CXX/drs/ |
dr412.cpp | 1 // RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT="throw()" -DBAD_ALLOC="throw(std::bad_alloc)" 12 namespace std { struct bad_alloc {}; } struct in namespace:std 14 inline void* operator new(size_t) BAD_ALLOC; // expected-error {{cannot be declared 'inline'}} 15 inline void* operator new[](size_t) BAD_ALLOC; // expected-error {{cannot be declared 'inline'}}
|
/external/libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/ |
default_throws_bad_alloc.pass.cpp | 17 // The sanitizers replace new/delete with versions that do not throw bad_alloc. 31 catch (std::bad_alloc &) { return 0; }
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/ |
default_throws_bad_alloc.pass.cpp | 17 // The sanitizers replace new/delete with versions that do not throw bad_alloc. 31 catch (std::bad_alloc &) { return 0; }
|
/external/libcxxabi/src/ |
cxa_new_delete.cpp | 31 throws bad_alloc. 53 throw std::bad_alloc(); 182 // bad_alloc 184 bad_alloc::bad_alloc() _NOEXCEPT 188 bad_alloc::~bad_alloc() _NOEXCEPT 193 bad_alloc::what() const _NOEXCEPT 195 return "std::bad_alloc"; 219 : public bad_alloc [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/src/ |
new.cpp | 49 throw(std::bad_alloc) 64 throw std::bad_alloc(); 95 throw(std::bad_alloc) 178 bad_alloc::bad_alloc() _NOEXCEPT 184 bad_alloc::~bad_alloc() _NOEXCEPT 189 bad_alloc::what() const _NOEXCEPT 191 return "std::bad_alloc"; 234 throw bad_alloc(); [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/src/ |
new.cpp | 44 throw(std::bad_alloc) 59 throw std::bad_alloc(); 90 throw(std::bad_alloc) 187 bad_alloc::bad_alloc() _NOEXCEPT 193 bad_alloc::~bad_alloc() _NOEXCEPT 198 bad_alloc::what() const _NOEXCEPT 200 return "std::bad_alloc"; 243 throw bad_alloc(); [all...] |