// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
struct S {
  virtual void final() final;
  virtual void override() override;
  virtual void n() new;
};

// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
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}}
};

Add more parser tests for the override control keywords.
Add more parser tests for the override control keywords.

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@123875 91177308-0d34-0410-b5e6-96231b3b80d8
