blob: bfc2b35ede23929d9b4e245f9f021f130cfdb4e3 [file] [log] [blame]
Denis Zobninf49c0f82016-02-10 11:23:48 +00001// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -DTEST -fsyntax-only -verify %s
2// RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fsyntax-only -verify %s
3
4#if TEST
Erich Keane505427c2019-03-21 13:30:56 +00005void (__attribute__((regparm(3), stdcall)) *pf) (); //expected-warning {{'stdcall' calling convention ignored for this target}}
6void (__attribute__((regparm(2), stdcall)) foo)(int a) { //expected-warning {{'stdcall' calling convention ignored for this target}}
Denis Zobninf49c0f82016-02-10 11:23:48 +00007}
8#else
9//expected-no-diagnostics
10void (__attribute__((regparm(3), stdcall)) *pf) ();
11void (__attribute__((regparm(2), stdcall)) foo)(int a) {}
12#endif