1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3auto a() -> int; // ok
4const auto b() -> int; // expected-error {{function with trailing return type must specify return type 'auto', not 'const auto'}}
5auto *c() -> int; // expected-error {{function with trailing return type must specify return type 'auto', not 'auto *'}}
6auto (d() -> int); // expected-error {{trailing return type may not be nested within parentheses}}
7auto e() -> auto (*)() -> auto (*)() -> void; // ok: same as void (*(*e())())();
8