2 // Negative test for auto
3 // { dg-do compile { target c++11 } }
6 auto f2 (); // { dg-error "without trailing return type" "" { target { ! c++1y } } }
7 int f3 () -> int; // { dg-error "trailing return type" }
8 auto *f4 () -> int; // { dg-error "trailing return type" }
12 auto f5 () const -> int;
13 auto f6 (); // { dg-error "without trailing return type" "" { target { ! c++1y } } }
14 int f7 () -> int; // { dg-error "trailing return type" }
15 auto *f8 () -> int; // { dg-error "trailing return type" }