Add more parser tests for the override control keywords.

llvm-svn: 123875
This commit is contained in:
Anders Carlsson 2011-01-20 03:41:12 +00:00
parent 4b6053a1fe
commit d802266c6b
1 changed files with 7 additions and 0 deletions

View File

@ -3,4 +3,11 @@ struct S {
virtual void final() final;
virtual void override() override;
virtual void n() new;
int i : 3 new;
int j new;
};
struct T {
// virt-specifier-seq is only valid in member-declarators, and a function definition is not a member-declarator.
virtual void f() const override { } // expected-error {{expected ';' at end of declaration list}}
};