Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / auto52.C
blobc277d33d00225cf4f565778f977af666f8a1a736
1 // PR c++/86942
2 // { dg-do compile { target c++11 } }
4 using T = auto() -> int;
5 using U = void() -> int; // { dg-error "11:.type name. function with trailing return type not declared with .auto." }
6 using W = auto(); // { dg-error "11:.*auto." }