/external/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/ |
ser.h | 1 // Serialization testing helper for noexcept, included by cg.cpp. 4 return noexcept(0); 7 return noexcept(throw 0);
|
cg.cpp | 15 b = noexcept(0); 17 b = noexcept(throw 0); 23 D(), noexcept(E());
|
/external/clang/test/CXX/except/except.spec/ |
p15.cpp | 3 // Deallocation functions are implicitly noexcept. 15 static_assert(noexcept(operator delete(0)), ""); 16 static_assert(noexcept(operator delete[](0)), ""); 22 static_assert(noexcept(operator delete(0, 0.f)), ""); 23 static_assert(noexcept(operator delete[](0, 0.f)), ""); 27 static_assert(!noexcept(operator delete(0, 0.)), ""); 28 void operator delete(void*, double) noexcept; // expected-error {{does not match}}
|
p9-noexcept.cpp | 5 void target() noexcept 16 void reverse() noexcept(false) function
|
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(false); // expected-error {{not allowed beyond a single} [all...] |
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-warning {{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
|
p1.cpp | 25 // Simple parser tests, noexcept specification. 29 void f1() noexcept { } 30 void f2() noexcept (true) { } function in namespace:noex 31 void f3() noexcept (false) { } function in namespace:noex 32 void f4() noexcept (1 < 2) { } 35 void foo() noexcept { } 36 void bar() noexcept (true) { } function in class:noex::CA1 39 void (*fptr1)() noexcept; member in namespace:noex 40 void (*fptr2)() noexcept (true); 46 void f() throw(int) noexcept { } // expected-error {{cannot have both} 68 void g(T x) noexcept((sizeof(T) == sizeof(int)) || noexcept(f(x))) { } function in namespace:noexcept_unevaluated [all...] |
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...] |
template.cpp | 6 template <int N> void f2() noexcept(N > 1); 11 void (*t3)() noexcept = &f2<2>; // no-error 12 void (*t4)() noexcept = &f2<0>; // expected-error {{not superset}}
|
p3.cpp | 44 // noexcept is compatible with itself 45 extern void (*r10)() noexcept; 46 extern void (*r10)() noexcept; 48 // noexcept(true) is compatible with noexcept 49 extern void (*r11)() noexcept; 50 extern void (*r11)() noexcept(true); 52 // noexcept(false) isn't 53 extern void (*r12)() noexcept; // expected-note {{previous declaration}} 54 extern void (*r12)() noexcept(false); // expected-error {{does not match} [all...] |
p14.cpp | 40 static_assert(noexcept(IC0()), "IC0() does not throw"); 41 static_assert(!noexcept(IC1()), "IC1() throws"); 46 NoThrowMove(NoThrowMove &&) noexcept; member in struct:PR13381::NoThrowMove 48 NoThrowMove &operator=(NoThrowMove &&) noexcept; member in struct:PR13381::NoThrowMove 51 NoThrowMoveOnly(NoThrowMoveOnly &&) noexcept; member in struct:PR13381::NoThrowMoveOnly 52 NoThrowMoveOnly &operator=(NoThrowMoveOnly &&) noexcept; member in struct:PR13381::NoThrowMoveOnly 63 static_assert(!noexcept(X(X::val())), ""); 64 static_assert(!noexcept(X::ref() = X::val()), ""); 68 // Part of DR1351: the implicit exception-specification is noexcept(false) if 70 // "any". Hence it is compatible with noexcept(false) [all...] |
p11.cpp | 5 void f() noexcept {
|
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/PCH/ |
cxx11-exception-spec.cpp | 9 template<bool b> int f() noexcept(b) {} function 15 static_assert(!noexcept(f<false>()), ""); 16 static_assert(noexcept(f<true>()), "");
|
/external/clang/test/SemaTemplate/ |
instantiation-depth-exception-spec.cpp | 3 template<typename T> T go(T a) noexcept(noexcept(go(a))); // \
|
instantiation-depth.cpp | 5 #ifndef NOEXCEPT 22 S() noexcept(noexcept(T()));
|
/external/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/ |
p2.cpp | 62 E1() noexcept = default; member in struct:E1 63 E1(const E1&) noexcept = default; member in struct:E1 64 E1(E1&&) noexcept = default; member in struct:E1 65 E1 &operator=(const E1&) noexcept = default; member in struct:E1 66 E1 &operator=(E1&&) noexcept = default; member in struct:E1 67 ~E1() noexcept = default; member in struct:E1 70 E2() noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted default constructor does not match the calculated one}} 71 E2(const E2&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted copy constructor does not match the calculated one}} 72 E2(E2&&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted move constructor does not match the calculated one}} 73 E2 &operator=(const E2&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted copy assignm (…) [all...] |
/external/clang/test/CXX/expr/expr.prim/expr.prim.general/ |
p3-0x.cpp | 5 float &f(int*) const noexcept; member in struct:A 8 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f(this->ptr)); 9 auto g2() const noexcept(noexcept(f((*this).ptr))) -> decltype(f(ptr)); 15 static_assert(!noexcept(a.g1()), "exception-specification failure"); 16 static_assert(noexcept(a.g2()), "exception-specification failure"); 30 float &f(T*) const noexcept; member in struct:C 33 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f((*this).ptr)) 48 iter_swap(I x, I y) noexcept; member in namespace:PR10036 116 void foo(Derived& d) noexcept(noexcept(d.bar(d))) {} \/\/ expected-error {{cannot bind to a value of unrelated type}} function in struct:PR12564::Derived [all...] |
/external/clang/test/CodeGenCXX/ |
throw-expression-cleanup.cpp | 8 Error(const X&) noexcept; member in struct:Error
|
/external/clang/test/CXX/special/class.dtor/ |
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/CXX/special/class.copy/ |
implicit-move.cpp | 9 ThrowingCopy() noexcept; member in struct:ThrowingCopy 10 ThrowingCopy(ThrowingCopy &&) noexcept; member in struct:ThrowingCopy 11 ThrowingCopy(const ThrowingCopy &) noexcept(false); 12 ThrowingCopy & operator =(ThrowingCopy &&) noexcept; member in struct:ThrowingCopy 13 ThrowingCopy & operator =(const ThrowingCopy &) noexcept(false); 18 HasCopyConstructor() noexcept; member in struct:HasCopyConstructor 19 HasCopyConstructor(const HasCopyConstructor &) noexcept(false); 24 HasCopyAssignment() noexcept; member in struct:HasCopyAssignment 25 HasCopyAssignment & operator =(const HasCopyAssignment &) noexcept(false); 30 HasMoveConstructor() noexcept; member in struct:HasMoveConstructor 31 HasMoveConstructor(HasMoveConstructor &&) noexcept; \/\/ expected-note {{copy assignment operator is implicitly deleted because 'HasMoveConstructor' has a user-declared move constructor}} member in struct:HasMoveConstructor 36 HasMoveAssignment() noexcept; member in struct:HasMoveAssignment 37 HasMoveAssignment & operator =(HasMoveAssignment &&) noexcept; member in struct:HasMoveAssignment 42 HasDestructor() noexcept; member in struct:HasDestructor 43 ~HasDestructor() noexcept; member in struct:HasDestructor 69 PrivateMove() noexcept; member in struct:PrivateMove 73 PrivateMove(PrivateMove &&) noexcept; member in struct:PrivateMove 74 PrivateMove & operator =(PrivateMove &&) noexcept; member in struct:PrivateMove 83 PrivateDestructor() noexcept; member in struct:PrivateDestructor 85 PrivateDestructor(PrivateDestructor &&) noexcept; member in struct:PrivateDestructor 87 ~PrivateDestructor() noexcept; member in struct:PrivateDestructor 96 NonTrivialCopyOnly() noexcept; member in struct:NonTrivialCopyOnly 108 ContainsConst() noexcept; member in struct:ContainsConst 114 ContainsRef() noexcept; member in struct:ContainsRef 159 ContainsRValueRef() noexcept; member in struct:ContainsRValueRef [all...] |
p15-0x.cpp | 27 template<typename T> T &&declval() noexcept; member in namespace:PR11418 31 NonPOD(const NonPOD &) noexcept; member in struct:PR11418::NonPOD 32 NonPOD(NonPOD &&) noexcept; member in struct:PR11418::NonPOD 39 static_assert(noexcept(declval<X>()), "noexcept isn't working at all"); 40 static_assert(noexcept(X(declval<X&>())), "copy constructor can't throw"); 41 static_assert(noexcept(X(declval<X>())), "move constructor can't throw");
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p5.cpp | 55 static_assert(!noexcept(tl1()), "lambda can throw"); 56 static_assert(!noexcept(tl2()), "lambda can throw"); 59 auto ntl2 = []() noexcept(true) {}; 60 auto ntl3 = []() noexcept {}; 61 static_assert(noexcept(ntl1()), "lambda cannot throw"); 62 static_assert(noexcept(ntl2()), "lambda cannot throw"); 63 static_assert(noexcept(ntl3()), "lambda cannot throw");
|
/external/clang/test/SemaCXX/ |
implicit-exception-spec.cpp | 11 // Noexcept::Noexcept() is implicitly declared as noexcept(false), because it 14 // If noexcept(Noexcept()) is false, then Noexcept() is a constant expression, 15 // so noexcept(Noexcept()) is true. But if noexcept(Noexcept()) is true, the [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/ |
atomic_base.h | 64 __cmpexch_failure_order(memory_order __m) noexcept 71 atomic_thread_fence(memory_order __m) noexcept 75 atomic_signal_fence(memory_order __m) noexcept 81 kill_dependency(_Tp __y) noexcept 245 atomic_flag() noexcept = default; member in struct:atomic_flag 246 ~atomic_flag() noexcept = default; member in struct:atomic_flag 252 constexpr atomic_flag(bool __i) noexcept member in struct:atomic_flag 257 test_and_set(memory_order __m = memory_order_seq_cst) noexcept 263 test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 269 clear(memory_order __m = memory_order_seq_cst) noexcept 322 __atomic_base() noexcept = default; member in struct:__atomic_base 323 ~__atomic_base() noexcept = default; member in struct:__atomic_base 329 constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } member in struct:__atomic_base [all...] |