[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / pr25786.c
blobf79d8144716b1f4f076b0067de3d898cd6c6f4ce
1 // 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
4 #if TEST
5 void (__attribute__((regparm(3), stdcall)) *pf) (); //expected-warning {{'stdcall' calling convention is not supported for this target}}
6 void (__attribute__((regparm(2), stdcall)) foo)(int a) { //expected-warning {{'stdcall' calling convention is not supported for this target}}
8 #else
9 //expected-no-diagnostics
10 void (__attribute__((regparm(3), stdcall)) *pf) ();
11 void (__attribute__((regparm(2), stdcall)) foo)(int a) {}
12 #endif