Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s |
Eli Friedman | 55d3aaf | 2009-03-27 21:06:47 +0000 | [diff] [blame] | 2 | |
| 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)}} |