1 // { dg-do compile { target c++11 } }
2 // { dg-prune-output "expected ';'" }
3 // { dg-prune-output "expected unqualified-id" }
4 // { dg-prune-output "declaration does not declare anything" }
8 virtual auto f() -> void final;
9 virtual auto g() -> void;
14 virtual auto f() -> void final {}
19 virtual auto f() -> final void; // { dg-error "type" }
24 virtual auto f() -> final void {} // { dg-error "type" }
29 virtual auto g() -> void override;
34 virtual auto g() -> void override {}
39 virtual auto g() -> override void; // { dg-error "type" }
44 virtual auto g() -> override void {} // { dg-error "type" }