| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.eh/ |
| H A D | spec6.C | 11 void fn1() throw(X); // ERROR - invalid use of undefined type 12 void fn2() throw(X *); // ERROR - invalid use of undefined type 13 void fn3() throw(X &); // ERROR - invalid use of undefined tyoe 14 void fn4() throw(void); // ERROR - invalid use of void expression 15 void fn5() throw(void &); // ERROR - invalid type // ERROR - invalid use of void 17 void fn6() throw(void *); // ok -- pointer to void 18 void fn7() throw(void const *); // ok -- pointer to cv void 20 template<class T> void fny() throw(T); // ok (so far) 21 template<> void fny<int>() throw(int); // ok 22 template<> void fny<void>() throw(void); // ERROR - invalid use of void [all …]
|
| H A D | cleanup2.C | 14 throw 0; in thrower() 20 X (int) throw (int); 21 ~X () throw (); 24 X::X (int) throw (int) in X() 26 X::~X () throw () in ~X() 32 Y() throw (int); 33 ~Y() throw (); 35 Y::Y() throw (int) in Y() 38 Y::~Y() throw () in ~Y()
|
| H A D | catchptr1.C | 19 throw &fn; in test0() 37 throw &A::fn; in test1() 55 throw &var; in test2() 73 throw &var; in test3() 91 throw &const_var; in test4() 114 throw (void ***)0; in test5() 131 throw (void const* const* const*)0; in test6() 164 throw (void ***)0; in test7() 189 throw (B **)0; in test8() 210 throw (B **)0; in test9()
|
| H A D | cond1.C | 19 j = (i ? throw X() : 1); // ok, int in fn() 20 j = (i ? 1 : throw X()); // ok, int in fn() 22 (i ? throw X() : throw X()); // ok, void in fn() 25 (i ? throw X() : j) = 1; // ERROR - non-lvalue in fn() 26 (i ? j : throw X()) = 1; // ERROR - non-lvalue in fn() 27 (i ? throw X() : throw X()) = 1; // ERROR - void in fn()
|
| H A D | badalloc1.C | 80 void fn_throw() throw(int) in fn_throw() 82 throw 1; in fn_throw() 85 void fn_rethrow() throw(int) in fn_rethrow() 89 throw;} in fn_rethrow() 92 void fn_catchthrow() throw(int) in fn_catchthrow() 96 throw a + 1;} in fn_catchthrow()
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/include/std/ |
| H A D | std_limits.h | 205 static _Tp min() throw() { return static_cast<_Tp>(0); } in min() 206 static _Tp max() throw() { return static_cast<_Tp>(0); } in max() 207 static _Tp epsilon() throw() { return static_cast<_Tp>(0); } in epsilon() 208 static _Tp round_error() throw() { return static_cast<_Tp>(0); } in round_error() 209 static _Tp infinity() throw() { return static_cast<_Tp>(0); } in infinity() 210 static _Tp quiet_NaN() throw() { return static_cast<_Tp>(0); } in quiet_NaN() 211 static _Tp signaling_NaN() throw() { return static_cast<_Tp>(0); } in signaling_NaN() 212 static _Tp denorm_min() throw() { return static_cast<_Tp>(0); } in denorm_min() 222 static bool min() throw() 224 static bool max() throw() [all …]
|
| H A D | std_memory.h | 183 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } in throw() function 192 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } in throw() function 204 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } in auto_ptr() 215 operator=(auto_ptr& __a) throw() in throw() function 233 operator=(auto_ptr<_Tp1>& __a) throw() in throw() function 262 operator*() const throw() { return *_M_ptr; } in throw() function 271 operator->() const throw() { return _M_ptr; } 284 get() const throw() { return _M_ptr; } in get() 298 release() throw() in release() 313 reset(element_type* __p = 0) throw() in throw() function [all …]
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/std/ |
| H A D | std_limits.h | 292 static _Tp min() throw() { return static_cast<_Tp>(0); } in min() 294 static _Tp max() throw() { return static_cast<_Tp>(0); } in max() 297 static _Tp epsilon() throw() { return static_cast<_Tp>(0); } in epsilon() 299 static _Tp round_error() throw() { return static_cast<_Tp>(0); } in round_error() 301 static _Tp infinity() throw() { return static_cast<_Tp>(0); } in infinity() 303 static _Tp quiet_NaN() throw() { return static_cast<_Tp>(0); } in quiet_NaN() 306 static _Tp signaling_NaN() throw() { return static_cast<_Tp>(0); } in signaling_NaN() 310 static _Tp denorm_min() throw() { return static_cast<_Tp>(0); } in denorm_min() 322 static bool min() throw() 324 static bool max() throw() [all …]
|
| H A D | std_memory.h | 190 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } in throw() function 199 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } in throw() function 212 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } in auto_ptr() 223 operator=(auto_ptr& __a) throw() in throw() function 241 operator=(auto_ptr<_Tp1>& __a) throw() in throw() function 270 operator*() const throw() in throw() function 283 operator->() const throw() 300 get() const throw() { return _M_ptr; } in get() 314 release() throw() in release() 329 reset(element_type* __p = 0) throw() in throw() function [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/ |
| H A D | auto_ptr.C | 10 explicit auto_ptr(X* p =0) throw() : px(p) {} in throw() function 11 auto_ptr(auto_ptr& r) throw() : px(r.release()) {} // ERROR - candidate in throw() function 13 auto_ptr(auto_ptr<Y>& r) throw() : px(r.release()) {}// ERROR - candidate in auto_ptr() 15 auto_ptr& operator=(auto_ptr& r) throw() { in throw() function 19 template<typename Y> auto_ptr& operator=(auto_ptr<Y>& r) throw() { in throw() function 26 X& operator*() const throw() { return *px; } in throw() function 27 X* operator->() const throw() { return px; } 28 X* get() const throw() { return px; } in get() 29 X* release() throw() { X* p=px; px=0; return p; } in release() 30 void reset(X* p=0) throw() { if (px != p) delete px, px = p; } in throw() function [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/ |
| H A D | crash36.C | 12 void *operator new (__SIZE_TYPE__, ...) throw(); // ok 14 void operator delete (void *) throw (); // ok 15 int operator delete (void *) throw (); // ERROR - must return void 16 void operator delete () throw (); // ERROR - must take void * 17 void operator delete (int *) throw (); // ERROR - must take void * 18 void operator delete (void *, __SIZE_TYPE__) throw (); // ok 20 void operator delete (...) throw (); // ERROR - must take void * 21 void operator delete (void *, ...) throw (); // ok
|
| H A D | cond5.C | 32 j = (i ? throw X() : 1); // ok, int in fn() 33 j = (i ? 1 : throw X()); // ok, int in fn() 35 (i ? throw X() : throw X()); // ok, void in fn() 38 (i ? throw X() : j) = 1; // ERROR - non lvalue in fn() 39 (i ? j : throw X()) = 1; // ERROR - non lvalue in fn() 40 (i ? throw X() : throw X()) = 1; // ERROR - invalid use of void in fn()
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/ext/ |
| H A D | bitmap_allocator.h | 95 _M_space_left() const throw() in _M_space_left() 127 size() const throw() in size() 131 begin() const throw() in begin() 135 end() const throw() in end() 139 back() const throw() in back() 143 operator[](const size_type __pos) const throw() in throw() function 162 pop_back() throw() in pop_back() 166 erase(iterator __pos) throw(); 169 clear() throw() in clear() 221 erase(iterator __pos) throw() in erase() [all …]
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/bits/ |
| H A D | locale_classes.h | 83 has_facet(const locale&) throw(); in _GLIBCXX_BEGIN_NAMESPACE() 123 locale() throw(); in _GLIBCXX_BEGIN_NAMESPACE() 132 locale(const locale& __other) throw(); in _GLIBCXX_BEGIN_NAMESPACE() 186 ~locale() throw(); in _GLIBCXX_BEGIN_NAMESPACE() 197 operator=(const locale& __other) throw(); in _GLIBCXX_BEGIN_NAMESPACE() 231 operator==(const locale& __other) const throw (); in _GLIBCXX_BEGIN_NAMESPACE() 240 operator!=(const locale& __other) const throw () in _GLIBCXX_BEGIN_NAMESPACE() 316 locale(_Impl*) throw(); in _GLIBCXX_BEGIN_NAMESPACE() 374 facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) in throw() function 401 _M_add_reference() const throw() in _M_add_reference() [all …]
|
| H A D | codecvt.h | 210 encoding() const throw() in encoding() 214 always_noconv() const throw() in always_noconv() 223 max_length() const throw() in max_length() 257 do_encoding() const throw() = 0; 260 do_always_noconv() const throw() = 0; 267 do_max_length() const throw() = 0; 317 do_encoding() const throw(); 320 do_always_noconv() const throw(); 327 do_max_length() const throw(); 377 do_encoding() const throw(); [all …]
|
| /openbsd-src/gnu/llvm/libcxxabi/include/ |
| H A D | cxxabi.h | 43 __cxa_allocate_exception(size_t thrown_size) throw(); 45 __cxa_free_exception(void *thrown_exception) throw(); 54 __cxa_get_exception_ptr(void *exceptionObject) throw(); 56 __cxa_begin_catch(void *exceptionObject) throw(); 60 __cxa_begin_cleanup(void *exceptionObject) throw(); 151 extern _LIBCXXABI_FUNC_VIS void *__cxa_current_primary_exception() throw(); 155 __cxa_increment_exception_refcount(void *primary_exception) throw(); 157 __cxa_decrement_exception_refcount(void *primary_exception) throw(); 160 extern _LIBCXXABI_FUNC_VIS bool __cxa_uncaught_exception() throw(); 161 extern _LIBCXXABI_FUNC_VIS unsigned int __cxa_uncaught_exceptions() throw(); [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/include/bits/ |
| H A D | locale_classes.h | 76 has_facet(const locale&) throw(); 95 locale() throw(); 97 locale(const locale& __other) throw(); 109 ~locale() throw(); 112 operator=(const locale& __other) throw(); 123 operator==(const locale& __other) const throw (); 126 operator!=(const locale& __other) const throw () 173 locale(_Impl*) throw(); 204 has_facet(const locale&) throw(); 227 _M_add_reference() throw() in _M_add_reference() [all …]
|
| H A D | codecvt.h | 101 encoding() const throw() in encoding() 105 always_noconv() const throw() in always_noconv() 114 max_length() const throw() in max_length() 141 do_encoding() const throw() = 0; 144 do_always_noconv() const throw() = 0; 151 do_max_length() const throw() = 0; 195 do_encoding() const throw(); 198 do_always_noconv() const throw(); 205 do_max_length() const throw(); 249 do_encoding() const throw(); [all …]
|
| H A D | streambuf_iterator.h | 73 istreambuf_iterator() throw() in istreambuf_iterator() 76 istreambuf_iterator(istream_type& __s) throw() in throw() function 79 istreambuf_iterator(streambuf_type* __s) throw() in throw() function 171 ostreambuf_iterator(ostream_type& __s) throw () in ostreambuf_iterator() 174 ostreambuf_iterator(streambuf_type* __s) throw () in throw() function 187 operator*() throw() in throw() function 191 operator++(int) throw() 195 operator++() throw() 199 failed() const throw() in failed()
|
| /openbsd-src/gnu/gcc/libstdc++-v3/libsupc++/ |
| H A D | new | 61 bad_alloc() throw() { } 65 virtual ~bad_alloc() throw(); 68 virtual const char* what() const throw(); 81 new_handler set_new_handler(new_handler) throw(); 86 * - normal single new and delete (no arguments, throw @c bad_alloc on error) 95 void* operator new(std::size_t) throw (std::bad_alloc); 96 void* operator new[](std::size_t) throw (std::bad_alloc); 97 void operator delete(void*) throw(); 98 void operator delete[](void*) throw(); 99 void* operator new(std::size_t, const std::nothrow_t&) throw(); [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/libsupc++/ |
| H A D | new | 56 bad_alloc() throw() { } 59 virtual ~bad_alloc() throw(); 68 new_handler set_new_handler(new_handler) throw(); 73 * - normal single new and delete (no arguments, throw @c bad_alloc on error) 82 void* operator new(std::size_t) throw (std::bad_alloc); 83 void* operator new[](std::size_t) throw (std::bad_alloc); 84 void operator delete(void*) throw(); 85 void operator delete[](void*) throw(); 86 void* operator new(std::size_t, const std::nothrow_t&) throw(); 87 void* operator new[](std::size_t, const std::nothrow_t&) throw(); [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/eh/ |
| H A D | spec2.C | 5 typedef void f1 (void) throw (int); // { dg-error "exception" } 6 typedef void (*f2) (void) throw (int); // { dg-error "exception" } 7 typedef void (S::*f3) (void) throw (int); // { dg-error "exception" } 9 void (*f4) (void) throw (int); 10 void (S::*f5) (void) throw (int);
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/opt/ |
| H A D | noreturn-1.C | 26 allocator() throw() { } in throw() function 27 allocator(const allocator &) throw() {} in throw() function 38 } void _M_destroy(const _Alloc &) throw(); in _M_dispose() 61 void detruit() throw(Egeneric); 62 template<class T> void infinint_from(T a) throw(Egeneric); 63 infinint(long a = 0) throw(Egeneric) { in throw() function 70 ~infinint() throw(Egeneric) { in throw() function
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/ |
| H A D | testsuite_allocator.h | 121 tracker_alloc() throw() in throw() function 124 tracker_alloc(const tracker_alloc&) throw() in throw() function 128 tracker_alloc(const tracker_alloc<U>&) throw() in tracker_alloc() 131 ~tracker_alloc() throw() in throw() function 135 max_size() const throw() in max_size() 165 operator==(const tracker_alloc<T1>&, const tracker_alloc<T2>&) throw() 170 operator!=(const tracker_alloc<T1>&, const tracker_alloc<T2>&) throw()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/compat/eh/ |
| H A D | unexpected1_y.C | 9 throw; in handle_unexpected() 13 throw Two (); in handle_unexpected() 18 doit () throw (Two) in doit() 20 throw One (); in doit()
|