diff options
Diffstat (limited to 'test/Sema/callingconv.c')
-rw-r--r-- | test/Sema/callingconv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Sema/callingconv.c b/test/Sema/callingconv.c index cb69c59c403a..102115b3bf2b 100644 --- a/test/Sema/callingconv.c +++ b/test/Sema/callingconv.c @@ -8,3 +8,12 @@ void __attribute__((stdcall)) bar(float *a) { void __attribute__((fastcall(1))) baz(float *a) { // expected-error {{attribute requires 0 argument(s)}} } + +void __attribute__((fastcall)) test0() { // expected-error {{function with no prototype cannot use 'fastcall' calling convention}} +} + +void __attribute__((fastcall)) test1(void) { +} + +void __attribute__((fastcall)) test2(int a, ...) { // expected-error {{variadic function cannot use 'fastcall' calling convention}} +} |