Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
      2 // expected-no-diagnostics
      3 
      4 struct Base {
      5   virtual void override();
      6 };
      7 
      8 struct S : Base {
      9   virtual void final() final;
     10   virtual void override() override;
     11 };
     12 
     13 struct T {
     14   // virt-specifier-seq is only valid in member-declarators, and a function definition is not a member-declarator.
     15   // FIXME: This currently doesn't work.
     16   // virtual void f() const override { }
     17 };
     18 
     19 struct override;
     20 struct Base2 {
     21   virtual override override(int override);
     22 };
     23 
     24 struct A : Base2 {
     25   virtual struct override override(int override) override;
     26 };
     27