/external/clang/test/CXX/except/except.spec/ |
H A D | p9-noexcept.cpp | 5 void target() noexcept 16 void reverse() noexcept(false) function
|
H A D | p2-places.cpp | 46 void f() noexcept(false); 48 void (*fp)() noexcept(false); 50 void g(void pfa() noexcept(false)); 52 typedef int (*pf)() noexcept(false); // expected-error {{specifications are not allowed in typedefs}} typedef in namespace:noex 54 void (*h())() noexcept(false); 56 void (*i() noexcept(false))(void (*)() noexcept(true)) noexcept(false); 58 void (**k)(void pfa() noexcept(false)); // no-error 60 void (**j)() noexcept(fals [all...] |
H A D | p4.cpp | 12 void S::a() noexcept {} // expected-error {{does not match previous}} 13 S::~S() noexcept {} // expected-warning {{function previously declared with an implicit exception specification redeclared with an explicit exception specification}} 14 void S::operator delete(void*) noexcept {} // expected-warning {{function previously declared with an implicit exception specification redeclared with an explicit exception specification}} 17 void a() noexcept; // expected-note {{here}} member in struct:T 18 ~T() noexcept; // expected-note {{here}} member in struct:T 19 void operator delete(void*) noexcept; // expected-note {{here}} member in struct:T 22 void T::a() {} // expected-error {{missing exception specification 'noexcept'}} 35 template<typename T> U<T>::~U() noexcept(true) {} // expected-error {{exception specification in declaration does not match previous declaration}} function 36 template<typename T> void U<T>::operator delete(void*) noexcept(false) {} // expected-error {{exception specification in declaration does not match previous declaration}} function
|
H A D | p5-delayed.cpp | 6 struct D { struct X { virtual void f() throw(Y); }; struct Y : X { void f() noexcept; }; }; member in struct:D::Y
|
H A D | p5-virtual.cpp | 35 virtual void f7() noexcept; member in struct:Base 36 virtual void f8() noexcept; member in struct:Base 37 virtual void f9() noexcept(false); 38 virtual void f10() noexcept(false); 41 virtual void f12() noexcept; member in struct:Base 42 virtual void f13() noexcept(false); 54 virtual void g6() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base 55 virtual void g7() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base 57 virtual void g8() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base 71 virtual void f7() noexcept; member in struct:Derived 76 virtual void f11() noexcept; member in struct:Derived 81 virtual void f15() noexcept; member in struct:Derived [all...] |
H A D | canonical.cpp | 9 template <class _Tp> _Tp&& declval() noexcept; member in namespace:std 14 static const bool value = noexcept(_Tp(declval<_Args>()...)); 25 noexcept(_is_nothrow_constructible<allocator_type>::value); 33 noexcept(_is_nothrow_constructible<_Compare>::value); 48 basic_string<T, _Traits, _Allocator>::basic_string() noexcept(_is_nothrow_constructible<allocator_type>::value) {} function in namespace:std 52 noexcept(_is_nothrow_constructible<_Compare>::value) {} function in namespace:std
|
/external/clang/test/CodeGenCXX/ |
H A D | microsoft-abi-eh-terminate.cpp | 5 void never_throws() noexcept(true) { function
|
H A D | throw-expression-cleanup.cpp | 8 Error(const X&) noexcept; member in struct:Error
|
H A D | destructor-crash.cpp | 16 ~C() noexcept; member in struct:C 19 C::~C() noexcept {}
|
/external/clang/test/SemaCXX/ |
H A D | libstdcxx_pair_swap_hack.cpp | 26 template<typename T> void do_swap(T &a, T &b) noexcept(noexcept(swap(a, b))) { function in namespace:std 32 void swap(CLASS &other) noexcept(noexcept(do_swap(member, other.member))); 36 void swap(CLASS &other) noexcept(noexcept(swap(member, other.member))); 42 // void swap(vector &other) noexcept(noexcept(do_swap(member, other.member))); 55 void swap(X &, X &) noexcept; 59 static_assert(noexcept(p [all...] |
H A D | dependent-noexcept-unevaluated.cpp | 5 declval() noexcept; 14 void swap(T& x, T& y) noexcept(some_trait<T>::value) function 26 void swap(array& a) noexcept(noexcept(::swap(declval<T&>(), declval<T&>())));
|
/external/libcxx/test/std/experimental/optional/optional.object/ |
H A D | optional_not_noexcept_destructible.fail.cpp | 21 ~X() noexcept(false) {} function in struct:X
|
/external/libcxxabi/test/ |
H A D | catch_function_03.pass.cpp | 10 // Can a noexcept function pointer be caught by a non-noexcept catch clause? 11 // UNSUPPORTED: libcxxabi-no-exceptions, libcxxabi-no-noexcept-function-type 15 template<bool Noexcept> void f() noexcept(Noexcept) {} function 16 template<bool Noexcept> using FnType = void() noexcept(Noexcept);
|
H A D | catch_member_function_pointer_02.pass.cpp | 10 // Can a noexcept member function pointer be caught by a non-noexcept catch 12 // UNSUPPORTED: libcxxabi-no-exceptions, libcxxabi-no-noexcept-function-type 17 template<bool Noexcept> void f() noexcept(Noexcept) {} function in struct:X 19 template<bool Noexcept> using FnType = void (X::*)() noexcept(Noexcept);
|
/external/clang/test/CXX/special/class.dtor/ |
H A D | p3.cpp | 7 A::~A() noexcept {} // expected-warning {{previously declared with an implicit exception specification}} 9 struct B { ~B() noexcept; }; // expected-note {{here}} member in struct:DR1492::B 16 template<typename T> C<T>::~C() noexcept {} // expected-error {{does not match previous}}
|
/external/clang/test/SemaTemplate/ |
H A D | exception-spec-crash.cpp | 18 noexcept(is_nothrow_move_constructible<allocator_type>::value); 22 Foo(Foo &&) noexcept = default; member in class:Foo 28 Foo &operator=(Foo &&) noexcept = default; member in class:Foo
|
/external/libcxx/test/libcxx/experimental/any/ |
H A D | small_type.pass.cpp | 29 SmallThrowsDtor(SmallThrowsDtor const &) noexcept {} 30 SmallThrowsDtor(SmallThrowsDtor &&) noexcept {} 31 ~SmallThrowsDtor() noexcept(false) {} function in class:SmallThrowsDtor
|
/external/libcxx/test/libcxx/utilities/any/ |
H A D | small_type.pass.cpp | 29 SmallThrowsDtor(SmallThrowsDtor const &) noexcept {} 30 SmallThrowsDtor(SmallThrowsDtor &&) noexcept {} 31 ~SmallThrowsDtor() noexcept(false) {} function in class:SmallThrowsDtor
|
/external/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/ |
H A D | ctor.pass.cpp | 30 UserType() noexcept {} 31 constexpr explicit UserType(int d) noexcept : i(d) {} member in struct:UserType
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
H A D | PR23256_constrain_UTypes_ctor.pass.cpp | 37 // but it does instantiate the noexcept specifier and it will blow up there. 39 constexpr UnconstrainedCtor(T value) noexcept(noexcept(value_ = value)) function in struct:UnconstrainedCtor 53 noexcept(noexcept(value_ = value)) function in struct:ExplicitUnconstrainedCtor
|
H A D | default.pass.cpp | 31 NoExceptDefault() noexcept = default; member in struct:NoExceptDefault 82 static_assert(noexcept(std::tuple<NoExceptDefault>()), ""); 83 static_assert(noexcept(std::tuple<NoExceptDefault, NoExceptDefault>()), ""); 85 static_assert(!noexcept(std::tuple<ThrowingDefault, NoExceptDefault>()), ""); 86 static_assert(!noexcept(std::tuple<NoExceptDefault, ThrowingDefault>()), ""); 87 static_assert(!noexcept(std::tuple<ThrowingDefault, ThrowingDefault>()), "");
|
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/ |
H A D | T.pass.cpp | 18 // variant& operator=(T&&) noexcept(see below); 35 ThrowsCtorT(int) noexcept(false) {} function in struct:MetaHelpers::ThrowsCtorT 36 ThrowsCtorT &operator=(int) noexcept { return *this; } 40 ThrowsAssignT(int) noexcept {} 41 ThrowsAssignT &operator=(int) noexcept(false) { return *this; } function in struct:MetaHelpers::ThrowsAssignT 45 NoThrowT(int) noexcept {} 46 NoThrowT &operator=(int) noexcept { return *this; } 57 ThrowsCtorT(int) noexcept(false) { throw 42; } function in struct:RuntimeHelpers::ThrowsCtorT 58 ThrowsCtorT &operator=(int v) noexcept { 67 ThrowsAssignT(int v) noexcept member in struct:RuntimeHelpers::ThrowsAssignT 74 NoThrowT(int v) noexcept : value(v) {} member in struct:NoThrowT [all...] |
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/ |
H A D | T.pass.cpp | 17 // template <class T> constexpr variant(T&&) noexcept(see below); 33 ThrowsT(int) noexcept(false) {} function in struct:ThrowsT 37 NoThrowT(int) noexcept(true) {} function in struct:NoThrowT
|
H A D | default.pass.cpp | 17 // constexpr variant() noexcept(see below); 31 NotNoexcept() noexcept(false) {} function in struct:NotNoexcept
|
/external/clang/test/Analysis/ |
H A D | new-with-exceptions.cpp | 20 void *operator new(size_t) noexcept; member in struct:NoExcept 46 extern void *operator new[](size_t, int) noexcept;
|