mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 12:16:08 +00:00

Summary: MSDN says that fastcall, stdcall, thiscall, and vectorcall are all accepted but ignored on ARM and X64. https://msdn.microsoft.com/en-us/library/984x0h58.aspx MSDN also says cdecl is also accepted and typically ignored This patch brings ARM in line with how we ignore them for X64 Reviewers: rnk Subscribers: compnerd, cfe-commits Differential Revision: http://reviews.llvm.org/D12034 llvm-svn: 245076
10 lines
304 B
C
10 lines
304 B
C
// RUN: %clang_cc1 -triple x86_64-windows -fms-compatibility -fsyntax-only -verify %s
|
|
|
|
int __cdecl cdecl(int a, int b, int c, int d) { // expected-no-diagnostics
|
|
return a + b + c + d;
|
|
}
|
|
|
|
float __stdcall stdcall(float a, float b, float c, float d) { // expected-no-diagnostics
|
|
return a + b + c + d;
|
|
}
|