p8-0x.cpp revision e7397c6a1bb2b205c5fe678e26199eb26d22e38e
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s 2 3auto f() -> int[32]; // expected-error{{function cannot return array}} 4auto g() -> int(int); // expected-error{{function cannot return function}} 5auto h() -> auto() -> int; // expected-error{{function cannot return function}} 6auto i() -> auto(*)() -> int; 7