// RUN: %clang_cc1 -verify -fsyntax-only -fblocks %s
// RUN: %clang_cc1 -xobjective-c++ -verify -fsyntax-only -fblocks %s
int a; // expected-warning{{'swift_async' attribute only applies to functions and Objective-C methods}}
void ;
void ; // expected-error{{'swift_async' attribute parameter 2 is out of bounds}}
void ; // expected-error{{'swift_async' attribute parameter 2 is out of bounds}}
void ; // expected-error{{'swift_async' completion handler parameter must have block type returning 'void', type here is 'int'}}
void ; // expected-error-re{{'swift_async' completion handler parameter must have block type returning 'void', type here is 'int (^)({{(void)?}})'}}
void ;
void ; // expected-error{{'swift_async' attribute takes one argument}}
void ; // expected-error{{'swift_async' attribute takes at least 1 argument}}
void ; // expected-error{{'swift_async' attribute requires exactly 2 arguments}}
void ; // expected-error{{'swift_async' attribute requires parameter 1 to be an identifier}}
void ; // expected-error{{first argument to 'swift_async' must be either 'none', 'swift_private', or 'not_swift_private'}}