Loading clang/test/CXX/class/class.mem/p2.cpp +0 −17 Original line number Diff line number Diff line Loading @@ -56,20 +56,3 @@ namespace test3 { template struct A2<int>; } namespace PR12629 { struct S { static int (f)() throw(); static int ((((((g))))() throw(U))); int (*h)() noexcept(false); static int (&i)() noexcept(true); static int (*j)() throw(U); // expected-error {{type name}} \ // expected-error {{expected ')'}} expected-note {{to match}} struct U {}; }; static_assert(noexcept(S::f()), ""); static_assert(!noexcept(S::g()), ""); static_assert(!noexcept(S().h()), ""); static_assert(noexcept(S::i()), ""); } Loading
clang/test/CXX/class/class.mem/p2.cpp +0 −17 Original line number Diff line number Diff line Loading @@ -56,20 +56,3 @@ namespace test3 { template struct A2<int>; } namespace PR12629 { struct S { static int (f)() throw(); static int ((((((g))))() throw(U))); int (*h)() noexcept(false); static int (&i)() noexcept(true); static int (*j)() throw(U); // expected-error {{type name}} \ // expected-error {{expected ')'}} expected-note {{to match}} struct U {}; }; static_assert(noexcept(S::f()), ""); static_assert(!noexcept(S::g()), ""); static_assert(!noexcept(S().h()), ""); static_assert(noexcept(S::i()), ""); }