forked from OSchip/llvm-project
Add more parser tests for the override control keywords.
llvm-svn: 123875
This commit is contained in:
parent
4b6053a1fe
commit
d802266c6b
|
@ -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}}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue