1 // RUN: clang-cc -fsyntax-only -verify %s
3 void f() const; // expected-error {{type qualifier is not allowed on this function}}
5 typedef void cfn() const;
6 cfn f2; // expected-error {{a qualified function type cannot be used to declare a nonmember function or a static member function}}
11 static void f3() const; // expected-error {{type qualifier is not allowed on this function}}
12 static cfn f4; // expected-error {{a qualified function type cannot be used to declare a nonmember function or a static member function}}
19 x = 0; // expected-error {{read-only variable is not assignable}}