summaryrefslogtreecommitdiff
path: root/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p8-0x.cpp
blob: 11926f1bd6cbef47198f6ba50a047f629c214b20 (about) (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s

auto f() -> int[32]; // expected-error{{function cannot return array}}
auto g() -> int(int); // expected-error{{function cannot return function}}
auto h() -> auto() -> int; // expected-error{{function cannot return function}}
auto i() -> auto(*)() -> int;