aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/arm-windows-calling-convention-handling.c
blob: 7717aada53a39b0fbb555c5e0fb5862ae0029736 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -fsyntax-only -verify %s

int __cdecl cdecl(int a, int b, int c, int d) { // expected-warning {{calling convention '__cdecl' ignored for this target}}
  return a + b + c + d;
}

float __stdcall stdcall(float a, float b, float c, float d) { // expected-warning {{calling convention '__stdcall' ignored for this target}}
  return a + b + c + d;
}