Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p2-cxx0x.cpp
Context not available. | |||||
const auto b() -> int; // expected-error {{function with trailing return type must specify return type 'auto', not 'const auto'}} | const auto b() -> int; // expected-error {{function with trailing return type must specify return type 'auto', not 'const auto'}} | ||||
auto *c() -> int; // expected-error {{function with trailing return type must specify return type 'auto', not 'auto *'}} | auto *c() -> int; // expected-error {{function with trailing return type must specify return type 'auto', not 'auto *'}} | ||||
auto (d() -> int); // expected-error {{trailing return type may not be nested within parentheses}} | auto (d() -> int); // expected-error {{trailing return type may not be nested within parentheses}} | ||||
auto e() -> auto (*)() -> auto (*)() -> void; // ok: same as void (*(*e())())(); | auto e() -> auto (*)() -> auto (*)() -> void; // ok: same as void (*(*e())())); | ||||
Context not available. |