Add a couple more tests.

llvm-svn: 184501
This commit is contained in:
Eli Friedman 2013-06-20 23:58:09 +00:00
parent aad8e48054
commit 7796da2409
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,10 @@ struct Y {
friend void X::f2() { } // expected-error{{friend function definition cannot be qualified with 'X::'}}
};
template <typename T> struct Z {
friend void T::f() {} // expected-error{{friend function definition cannot be qualified with 'T::'}}
};
void local() {
void f();

View File

@ -165,6 +165,7 @@ template<typename T, typename... Types>
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'}}