forked from OSchip/llvm-project
parent
aad8e48054
commit
7796da2409
|
@ -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();
|
||||
|
||||
|
|
|
@ -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'}}
|
||||
|
|
Loading…
Reference in New Issue