summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/stdcall-fastcall.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-04 03:36:09 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-04 03:36:09 +0000
commit4976fd4ea9716ef81c097f388faf754d34925767 (patch)
treefd9a63661942094023ebda8d8431ff67fb172eb4 /clang/test/Sema/stdcall-fastcall.c
parent2969877eea96e2b16cb36713210a0677b85dfe14 (diff)
downloadbcm5719-llvm-4976fd4ea9716ef81c097f388faf754d34925767.tar.gz
bcm5719-llvm-4976fd4ea9716ef81c097f388faf754d34925767.zip
Diagnose the use of 'fastcall' on functions without prototypes or with
varargs prototypes. llvm-svn: 86001
Diffstat (limited to 'clang/test/Sema/stdcall-fastcall.c')
-rw-r--r--clang/test/Sema/stdcall-fastcall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/stdcall-fastcall.c b/clang/test/Sema/stdcall-fastcall.c
index 353bbfc2529..e0db63822fb 100644
--- a/clang/test/Sema/stdcall-fastcall.c
+++ b/clang/test/Sema/stdcall-fastcall.c
@@ -5,6 +5,6 @@ int __attribute__((stdcall)) var1; // expected-warning{{'stdcall' attribute only
int __attribute__((fastcall)) var2; // expected-warning{{'fastcall' attribute only applies to function types}}
// Different CC qualifiers are not compatible
-void __attribute__((stdcall, fastcall)) foo3(); // expected-error{{stdcall and fastcall attributes are not compatible}}
+void __attribute__((stdcall, fastcall)) foo3(void); // expected-error{{stdcall and fastcall attributes are not compatible}}
void __attribute__((stdcall)) foo4();
-void __attribute__((fastcall)) foo4(); // expected-error{{fastcall and stdcall attributes are not compatible}}
+void __attribute__((fastcall)) foo4(void); // expected-error{{fastcall and stdcall attributes are not compatible}}
OpenPOWER on IntegriCloud