// RUN: %clang_cc1 -verify -std=c++11 %s
int ; // ok
int ; // ok
int ; // expected-error {{attribute 'carries_dependency' cannot have an argument list}}
void ; // FIXME: warn here
int ; // ok
int ; // ok
int ; // expected-error {{'carries_dependency' attribute only applies to parameters, Objective-C methods, and functions}}
int ; // expected-error {{'carries_dependency' attribute only applies to}}
int ; // expected-error {{'carries_dependency' attribute cannot be applied to types}}
int ; // expected-error {{'[[carries_dependency]]' attribute only allowed on parameter in a function declaration}}
int ; // ok
int ; // expected-error {{'[[carries_dependency]]' attribute only allowed on parameter in a function declaration}}
int typedef ; // expected-error {{'[[carries_dependency]]' attribute only allowed on parameter in a function declaration}}
using T = int; // expected-error {{'[[carries_dependency]]' attribute only allowed on parameter in a function declaration}}
;
void
auto l1 = ;
// There's no way to write a lambda such that the return value carries
// a dependency, because an attribute applied to the lambda appertains to
// the *type* of the operator() function, not to the function itself.
auto l2 = ; // expected-error {{'carries_dependency' attribute cannot be applied to types}}