2 // { dg-do compile { target c++11 } }
4 auto get(int) -> int { return {}; }
5 template <class R> int f(auto (*)(int) -> R) { return {}; }
8 int foo1 (auto (int) -> char);
10 int foo2 (auto f(int) -> char);
12 int foo2 (auto (f)(int) -> char);
14 int foo3 (auto (*f)(int) -> char);
16 int foo4 (auto (*const **&f)(int) -> char);
18 int foo5 (auto (*const **&f)(int, int *) -> char);
20 int foo6 (auto (int) const -> char); // { dg-error "const" }
22 void foo7 (auto __attribute__ ((unused)) f (int) -> int) { }