From: Eli Friedman Date: Thu, 20 Jun 2013 23:58:09 +0000 (+0000) Subject: Add a couple more tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ff7e32f9480bf00d8d8476c650907853d1cc354;p=clang Add a couple more tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184501 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/class.access/class.friend/p6.cpp b/test/CXX/class.access/class.friend/p6.cpp index 7f7d909903..2fe20fe77f 100644 --- a/test/CXX/class.access/class.friend/p6.cpp +++ b/test/CXX/class.access/class.friend/p6.cpp @@ -11,6 +11,10 @@ struct Y { friend void X::f2() { } // expected-error{{friend function definition cannot be qualified with 'X::'}} }; +template struct Z { + friend void T::f() {} // expected-error{{friend function definition cannot be qualified with 'T::'}} +}; + void local() { void f(); diff --git a/test/CXX/temp/temp.decls/temp.variadic/p5.cpp b/test/CXX/temp/temp.decls/temp.variadic/p5.cpp index 218990e9bb..3681d7757e 100644 --- a/test/CXX/temp/temp.decls/temp.variadic/p5.cpp +++ b/test/CXX/temp/temp.decls/temp.variadic/p5.cpp @@ -165,6 +165,7 @@ template struct alignas(Types) TestUnexpandedDecls : T{ // expected-error{{expression contains unexpanded parameter pack 'Types'}} void member_function(Types); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}} void member_function () throw(Types); // expected-error{{exception type contains unexpanded parameter pack 'Types'}} + void member_function2() noexcept(Types()); // expected-error{{expression contains unexpanded parameter pack 'Types'}} operator Types() const; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}} Types data_member; // expected-error{{data member type contains unexpanded parameter pack 'Types'}} static Types static_data_member; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}