1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 void f() const; // expected-error{{type qualifier is not allowed on this function}} 4 5 struct X { 6 void f() const; 7 friend void g() const; // expected-error{{type qualifier is not allowed on this function}} 8 static void h() const; // expected-error{{type qualifier is not allowed on this function}} 9 }; 10 11 struct Y { 12 friend void X::f() const; 13 friend void ::f() const; // expected-error{{type qualifier is not allowed on this function}} 14 }; 15