// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -fdouble-square-bracket-attributes -verify %s
int ;
int ; // expected-error{{'regparm' attribute requires an integer constant}}
int ; // expected-error{{'regparm' parameter must be between 0 and 3 inclusive}}
int ; // expected-error{{'regparm' parameter must be between 0 and 3 inclusive}}
int ; // expected-error{{'regparm' attribute takes one argument}}
void ;
void ; // expected-note{{previous declaration is here}}
void ; // expected-error{{function declared with regparm(2) attribute was previously declared with the regparm(3) attribute}}
void ; // expected-note{{previous declaration is here}}
void ; // expected-error{{function declared with regparm(2) attribute was previously declared with the regparm(3) attribute}}
void x6 ;
void ; // expected-warning{{'regparm' only applies to function types; type here is 'void'}}
void ; // expected-warning{{GCC does not allow the 'regparm' attribute to be written on a type}}