blob: 21efbfff1ab9e31a9cb6bd33a334007100c19c3d (
plain) (
blame)
1
2
3
4
5
6
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %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;
|