diff options
Diffstat (limited to 'test/Sema/callingconv.c')
-rw-r--r-- | test/Sema/callingconv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Sema/callingconv.c b/test/Sema/callingconv.c new file mode 100644 index 000000000000..cb69c59c403a --- /dev/null +++ b/test/Sema/callingconv.c @@ -0,0 +1,10 @@ +// RUN: clang-cc %s -fsyntax-only -verify + +void __attribute__((fastcall)) foo(float *a) { +} + +void __attribute__((stdcall)) bar(float *a) { +} + +void __attribute__((fastcall(1))) baz(float *a) { // expected-error {{attribute requires 0 argument(s)}} +} |