Lines Matching defs:noexcept
5 float &f(int*) const noexcept;
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;
33 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f((*this).ptr));
34 auto g2() const noexcept(noexcept(f(((this))->ptr))) -> decltype(f(ptr));
41 static_assert(!noexcept(ci.g1()), "exception-specification failure");
42 static_assert(noexcept(ci.g2()), "exception-specification failure");
48 iter_swap(I x, I y) noexcept;
55 void swap(A& a) noexcept(noexcept(iter_swap(&t_, &a.t_)));
72 static int i() noexcept(noexcept(m + 2)); // expected-error{{'this' cannot be implicitly used in a static member function declaration}}
99 void foo(Derived& d) noexcept(noexcept(d.bar(d))) {} // unexpected-error {{cannot bind to a value of unrelated type}}