summaryrefslogtreecommitdiff
path: root/test/Sema/callingconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/callingconv.c')
-rw-r--r--test/Sema/callingconv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/callingconv.c b/test/Sema/callingconv.c
index 102115b3bf2ba..f65aab463f572 100644
--- a/test/Sema/callingconv.c
+++ b/test/Sema/callingconv.c
@@ -17,3 +17,7 @@ void __attribute__((fastcall)) test1(void) {
void __attribute__((fastcall)) test2(int a, ...) { // expected-error {{variadic function cannot use 'fastcall' calling convention}}
}
+
+void __attribute__((cdecl)) ctest0() {}
+
+void __attribute__((cdecl(1))) ctest1(float x) {} // expected-error {{attribute requires 0 argument(s)}}