Add include needed for MSVC.
[clang/acc.git] / test / Sema / attr-regparm.c
blob944f01489c8b9daf4acfdd15d5793d39ae192705
1 // RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -verify %s
3 __attribute((regparm(2))) int x(void);
4 __attribute((regparm(1.0))) int x(void); // expected-error{{'regparm' attribute requires integer constant}}
5 __attribute((regparm(-1))) int x(void); // expected-error{{'regparm' parameter must be between 0 and 3 inclusive}}
6 __attribute((regparm(5))) int x(void); // expected-error{{'regparm' parameter must be between 0 and 3 inclusive}}
7 __attribute((regparm(5,3))) int x(void); // expected-error{{attribute requires 1 argument(s)}}