As discussed in D64780 the wording of this warning message is being changed to say 'is not supported' instead of 'ignored', and the diag ID itself is being changed to warn_cconv_not_supported. llvm-svn: 366368
13 lines
599 B
C
13 lines
599 B
C
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -DTEST -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fsyntax-only -verify %s
|
|
|
|
#if TEST
|
|
void (__attribute__((regparm(3), stdcall)) *pf) (); //expected-warning {{'stdcall' calling convention is not supported for this target}}
|
|
void (__attribute__((regparm(2), stdcall)) foo)(int a) { //expected-warning {{'stdcall' calling convention is not supported for this target}}
|
|
}
|
|
#else
|
|
//expected-no-diagnostics
|
|
void (__attribute__((regparm(3), stdcall)) *pf) ();
|
|
void (__attribute__((regparm(2), stdcall)) foo)(int a) {}
|
|
#endif
|