summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/callingconv.c
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-09-24 17:49:24 +0000
committerReid Kleckner <reid@kleckner.net>2014-09-24 17:49:24 +0000
commit2e0717e129b0de854b16ac6ff7398462ac89cf37 (patch)
tree09513707d77749198e97de735afbeebcd6b32fc9 /clang/test/Sema/callingconv.c
parentf2fce1492092b5ca5f9a5aef5d41841860af8b8b (diff)
downloadbcm5719-llvm-2e0717e129b0de854b16ac6ff7398462ac89cf37.tar.gz
bcm5719-llvm-2e0717e129b0de854b16ac6ff7398462ac89cf37.zip
Downgrade error about stdcall decls with no prototype to a warning
Fixes PR21027. The MIDL compiler produces code that does this. If we wanted to improve the warning, I think we could do this: void __stdcall f(); // Don't warn without -Wstrict-prototypes. void g() { f(); // Might warn, the user probably meant for f to take no args. f(1, 2, 3); // Warn, we have no idea what args f takes. f(1); // Error, this is insane, one of these calls is broken. } Reviewers: thakis Differential Revision: http://reviews.llvm.org/D5481 llvm-svn: 218394
Diffstat (limited to 'clang/test/Sema/callingconv.c')
-rw-r--r--clang/test/Sema/callingconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/callingconv.c b/clang/test/Sema/callingconv.c
index f9fa9fef2b3..68908152ff6 100644
--- a/clang/test/Sema/callingconv.c
+++ b/clang/test/Sema/callingconv.c
@@ -10,7 +10,7 @@ void __attribute__((stdcall)) bar(float *a) {
void __attribute__((fastcall(1))) baz(float *a) { // expected-error {{'fastcall' attribute takes no arguments}}
}
-void __attribute__((fastcall)) test0() { // expected-error {{function with no prototype cannot use fastcall calling convention}}
+void __attribute__((fastcall)) test0() { // expected-error {{function with no prototype cannot use the callee-cleanup fastcall calling convention}}
}
void __attribute__((fastcall)) test1(void) {
OpenPOWER on IntegriCloud