* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / override4.C
blob7120984b37142670563a721ae5ea180d52867ee9
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" }
6 struct B
8   virtual auto f() -> void final;
9   virtual auto g() -> void;
12 struct B2
14   virtual auto f() -> void final {}
17 struct B3
19   virtual auto f() -> final void; // { dg-error "type" }
22 struct B4
24   virtual auto f() -> final void {} // { dg-error "type" }
27 struct D : B
29   virtual auto g() -> void override;
32 struct D2 : B
34   virtual auto g() -> void override {}
37 struct D3 : B
39   virtual auto g() -> override void; // { dg-error "type" }
42 struct D4 : B
44   virtual auto g() -> override void {} // { dg-error "type" }