blob: 4873c095a0ebf5335647b96b1ca7415e7a7ada66 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
void f() const; // expected-error{{type qualifier is not allowed on this function}}
struct X {
void f() const;
friend void g() const; // expected-error{{type qualifier is not allowed on this function}}
static void h() const; // expected-error{{type qualifier is not allowed on this function}}
};
struct Y {
friend void X::f() const;
friend void ::f() const; // expected-error{{type qualifier is not allowed on this function}}
};