/external/clang/test/CXX/except/except.spec/ |
H A D | p9-noexcept.cpp | 5 void target() noexcept 15 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 | 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 | 8 template <class _Tp> _Tp&& declval() noexcept; member in namespace:std 13 static const bool value = noexcept(_Tp(declval<_Args>()...)); 24 noexcept(__is_nothrow_constructible<allocator_type>::value); 32 noexcept(__is_nothrow_constructible<_Compare>::value); 47 basic_string<T, _Traits, _Allocator>::basic_string() noexcept(__is_nothrow_constructible<allocator_type>::value) {} function in namespace:std 51 noexcept(__is_nothrow_constructible<_Compare>::value) {} function in namespace:std
|
H A D | 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 { } // expecte 68 noexcept(sizeof(T) == sizeof(int)) || noexcept(f(x)) argument [all...] |
H A D | 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()), "");
|
/external/clang/test/PCH/ |
H A D | cxx11-exception-spec.cpp | 8 template<bool b> int f() noexcept(b) {} function 14 static_assert(!noexcept(f<false>()), ""); 15 static_assert(noexcept(f<true>()), "");
|
/external/clang/test/CodeGenCXX/ |
H A D | throw-expression-cleanup.cpp | 8 Error(const X&) noexcept; member in struct:Error
|
H A D | cxx0x-delegating-ctors.cpp | 5 ~non_trivial() noexcept(false); 8 non_trivial::~non_trivial() noexcept(false) {} function
|
/external/clang/test/SemaCXX/ |
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/clang/test/CXX/special/class.copy/ |
H A D | p15-0x.cpp | 26 template<typename T> T &&declval() noexcept; member in namespace:PR11418 30 NonPOD(const NonPOD &) noexcept; member in struct:PR11418::NonPOD 31 NonPOD(NonPOD &&) noexcept; member in struct:PR11418::NonPOD 38 static_assert(noexcept(declval<X>()), "noexcept isn't working at all"); 39 static_assert(noexcept(X(declval<X&>())), "copy constructor can't throw"); 40 static_assert(noexcept(X(declval<X>())), "move constructor can't throw");
|
H A D | p13-0x.cpp | 97 friend constexpr U::U() noexcept; member in struct:PR13052::X 98 friend constexpr U::U(U&&) noexcept; member in struct:PR13052::X 99 friend constexpr U::U(const U&) noexcept; member in struct:PR13052::X 101 friend constexpr V::V(V&&) noexcept; member in struct:PR13052::X 102 friend constexpr V::V(const V&) noexcept; member in struct:PR13052::X 104 friend constexpr W::W(W&&) noexcept; member in struct:PR13052::X 105 friend constexpr W::W(const W&) noexcept; member in struct:PR13052::X 106 friend constexpr S<U>::S() noexcept; member in struct:PR13052::X 107 friend constexpr S<U>::S(S<U>&&) noexcept; member in struct:PR13052::X 108 friend constexpr S<U>::S(const S<U>&) noexcept; member in struct:PR13052::X 110 friend constexpr S<V>::S(S<V>&&) noexcept; member in struct:PR13052::X 111 friend constexpr S<V>::S(const S<V>&) noexcept; member in struct:PR13052::X 113 friend constexpr S<W>::S(S<W>&&) noexcept; member in struct:PR13052::X 114 friend constexpr S<W>::S(const S<W>&) noexcept; member in struct:PR13052::X [all...] |
H A D | 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...] |
/external/clang/test/Lexer/ |
H A D | cxx0x_keyword_as_cxx98.cpp | 33 int noexcept; // expected-warning {{'noexcept' is a keyword in C++11}} variable
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.general/ |
H A D | 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( 48 iter_swap(I x, I y) noexcept; member in namespace:PR10036 99 void foo(Derived& d) noexcept(noexcept(d.bar(d))) {} // unexpected-error {{cannot bind to a value of unrelated type}} function in struct:PR12564::Derived [all...] |
/external/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/ |
H A D | 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(fals [all...] |
/external/clang/test/CXX/special/class.ctor/ |
H A D | p6-0x.cpp | 90 friend constexpr A::A() noexcept; // expected-error {{follows non-constexpr declaration}} member in struct:UnionCtors::Test 91 friend constexpr B::B() noexcept; member in struct:UnionCtors::Test 92 friend constexpr C::C() noexcept; member in struct:UnionCtors::Test 93 friend constexpr D::D() noexcept; member in struct:UnionCtors::Test 94 friend constexpr E::E() noexcept; // expected-error {{follows non-constexpr declaration}} member in struct:UnionCtors::Test
|
/external/clang/test/SemaTemplate/ |
H A D | instantiate-exception-spec-cxx11.cpp | 16 static void f() noexcept(A<U>().n); 23 static_assert(noexcept(A<int>::B<char>::f()), ""); 26 static void recurse() noexcept(noexcept(S<N+1>::recurse())); // \ 34 void (*pFn2)() noexcept = &S<0>::recurse; // expected-note {{instantiation of exception spec}} expected-error {{not superset}} 37 template<typename T> T go(T a) noexcept(noexcept(go(a))); // \ 62 static int f() noexcept(noexcept(A<T>().f("boo!"))) { return 0; } // \ 72 template<typename T> T declval() noexcept; member in namespace:core_19754_example 125 virtual void f() noexcept; // expected-note {{overridden}} member in struct:Base [all...] |
/external/clang/test/CXX/special/class.dtor/ |
H A D | p3-0x.cpp | 17 ~D() noexcept(false); 38 F::~F() noexcept(false) {} function 78 ~TD() noexcept(false); 102 TF<T>::~TF() noexcept(false) {} function
|
/external/clang/test/Preprocessor/ |
H A D | cxx_oper_keyword_ms_compat.cpp | 55 #define noexcept macro 140 noexcept
|