p6.cpp revision 708f3b8e350a5c0605889a4f32b26686864495ca
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3void f() const; // expected-error{{type qualifier is not allowed on this function}} 4 5struct 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 11struct Y { 12 friend void X::f() const; 13 friend void ::f() const; // expected-error{{type qualifier is not allowed on this function}} 14}; 15