* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / trailing12.C
bloba27d988b9b24d06cb9b2005fded431050cec5752
1 // PR c++/69139
2 // { dg-do compile { target c++11 } }
4 auto get(int) -> int { return {}; }
5 template <class R> int f(auto (*)(int) -> R) { return {}; }
6 int i = f(get);
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) { }