[libc] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES. (#117265)
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.fct / p8-0x.cpp
blob11926f1bd6cbef47198f6ba50a047f629c214b20
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 auto f() -> int[32]; // expected-error{{function cannot return array}}
4 auto g() -> int(int); // expected-error{{function cannot return function}}
5 auto h() -> auto() -> int; // expected-error{{function cannot return function}}
6 auto i() -> auto(*)() -> int;