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