blob: 045a41396e3f2ab0501caaf9894528392bba6479 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
Eli Friedman55d3aaf2009-03-27 21:06:47 +00002
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)}}