| /external/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/ |
| 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)'}}
|
| p2-noexceptions.cpp | 4 class bad_alloc { }; class in namespace:std
|
| /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;
|
| /ndk/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;
|
| /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'}}
|
| /ndk/tests/device/test-stlport_shared-exception/jni/ |
| new11.cpp | 8 void *operator new[](size_t bytes) throw (std::bad_alloc) {
|
| p755.cpp | 10 void* operator new(size_t sz) throw (std::bad_alloc) {
|
| new6.cpp | 11 void *operator new (size_t size) throw (bad_alloc)
|
| /ndk/tests/device/test-stlport_static-exception/jni/ |
| new11.cpp | 8 void *operator new[](size_t bytes) throw (std::bad_alloc) {
|
| p755.cpp | 10 void* operator new(size_t sz) throw (std::bad_alloc) {
|
| new6.cpp | 11 void *operator new (size_t size) throw (bad_alloc)
|
| /ndk/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...] |
| /ndk/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/current/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...] |
| /external/libcxx/include/ |
| new | 20 class bad_alloc 24 bad_alloc() noexcept; 25 bad_alloc(const bad_alloc&) noexcept; 26 bad_alloc& operator=(const bad_alloc&) noexcept; 30 class bad_array_length : public bad_alloc // C++14 36 class bad_array_new_length : public bad_alloc 82 class _LIBCPP_EXCEPTION_ABI bad_alloc 86 bad_alloc() _NOEXCEPT [all...] |
| /ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
| new | 20 class bad_alloc 24 bad_alloc() noexcept; 25 bad_alloc(const bad_alloc&) noexcept; 26 bad_alloc& operator=(const bad_alloc&) noexcept; 30 class bad_array_length : public bad_alloc // C++14 36 class bad_array_new_length : public bad_alloc 78 class _LIBCPP_EXCEPTION_ABI bad_alloc 82 bad_alloc() _NOEXCEPT [all...] |
| /prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libcxx/include/ |
| new | 20 class bad_alloc 24 bad_alloc() noexcept; 25 bad_alloc(const bad_alloc&) noexcept; 26 bad_alloc& operator=(const bad_alloc&) noexcept; 30 class bad_array_length : public bad_alloc // C++14 36 class bad_array_new_length : public bad_alloc 78 class _LIBCPP_EXCEPTION_ABI bad_alloc 82 bad_alloc() _NOEXCEPT [all...] |
| /external/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...] |
| /external/lzma/CPP/Common/ |
| NewHandler.h | 9 The operator "new" in MSVC 6.0 doesn't throw exception "bad_alloc".
13 you can compile without "NewHandler.cpp". So standard exception "bad_alloc" will be used.
16 with any compiler. 7-Zip's code can work with "bad_alloc" and "CNewException" exceptions.
|
| /ndk/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...] |
| /ndk/sources/cxx-stl/gabi++/include/ |
| new | 44 class bad_alloc : public exception { 46 bad_alloc() throw(); 47 virtual ~bad_alloc() throw(); 51 class bad_array_new_length : public bad_alloc { 60 class bad_array_length : public bad_alloc { 74 void* operator new(std::size_t size) throw(std::bad_alloc); 76 void* operator new[](std::size_t size) throw(std::bad_alloc);
|
| /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ |
| new | 52 * @c bad_alloc (or classes derived from it) is used to report allocation 54 class bad_alloc : public exception 57 bad_alloc() throw() { } 61 virtual ~bad_alloc() throw(); 82 * - normal single new and delete (no arguments, throw @c bad_alloc on error) 91 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) 93 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
|
| /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ |
| new | 52 * @c bad_alloc (or classes derived from it) is used to report allocation 54 class bad_alloc : public exception 57 bad_alloc() throw() { } 61 virtual ~bad_alloc() throw(); 82 * - normal single new and delete (no arguments, throw @c bad_alloc on error) 91 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) 93 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
|
| /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ |
| new | 52 * @c bad_alloc (or classes derived from it) is used to report allocation 54 class bad_alloc : public exception 57 bad_alloc() throw() { } 61 virtual ~bad_alloc() throw(); 82 * - normal single new and delete (no arguments, throw @c bad_alloc on error) 91 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) 93 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
|