Lines Matching full:__attribute__
4 void __attribute__((fastcall)) foo(float *a) {
7 void __attribute__((stdcall)) bar(float *a) {
10 void __attribute__((fastcall(1))) baz(float *a) { // expected-error {{'fastcall' attribute takes no arguments}}
13 void __attribute__((fastcall)) test0() { // expected-error {{function with no prototype cannot use fastcall calling convention}}
16 void __attribute__((fastcall)) test1(void) {
19 void __attribute__((fastcall)) test2(int a, ...) { // expected-warning {{fastcall calling convention ignored on variadic function}}
21 void __attribute__((stdcall)) test3(int a, ...) { // expected-warning {{stdcall calling convention ignored on variadic function}}
23 void __attribute__((thiscall)) test4(int a, ...) { // expected-error {{variadic function cannot use thiscall calling convention}}
26 void __attribute__((cdecl)) ctest0() {}
28 void __attribute__((cdecl(1))) ctest1(float x) {} // expected-error {{'cdecl' attribute takes no arguments}}
30 void (__attribute__((fastcall)) *pfoo)(float*) = foo;
32 void (__attribute__((stdcall)) *pbar)(float*) = bar;
34 void (__attribute__((cdecl)) *ptest1)(void) = test1; // expected-warning {{incompatible pointer types}}
39 void (__attribute__((cdecl)) *pctest2)() = ctest2;
41 typedef void (__attribute__((fastcall)) *Handler) (float *);
44 int __attribute__((pcs("aapcs", "aapcs"))) pcs1(void); // expected-error {{'pcs' attribute takes one argument}}
45 int __attribute__((pcs())) pcs2(void); // expected-error {{'pcs' attribute takes one argument}}
46 int __attribute__((pcs(pcs1))) pcs3(void); // expected-error {{'pcs' attribute requires a string}} \
48 int __attribute__((pcs(0))) pcs4(void); // expected-error {{'pcs' attribute requires a string}}
50 int __attribute__((pcs("aapcs"))) pcs5(void); // expected-warning {{calling convention 'pcs' ignored for this target}}
51 int __attribute__((pcs("aapcs-vfp"))) pcs6(void); // expected-warning {{calling convention 'pcs' ignored for this target}}
52 int __attribute__((pcs("foo"))) pcs7(void); // expected-error {{invalid PCS type}}
56 void __attribute__((cdecl)) ctest3() {}
59 typedef __attribute__((stdcall)) void (*PROC)();
60 PROC __attribute__((cdecl)) ctest4(const char *x) {}
62 void __attribute__((pnaclcall)) pnaclfunc(float *a) {} // expected-warning {{calling convention 'pnaclcall' ignored for this target}}
64 void __attribute__((intel_ocl_bicc)) inteloclbifunc(float *a) {}
68 void __attribute__((stdcall)) typedef_fun(int x) { } // expected-error {{function declared 'stdcall' here was previously declared without calling convention}}
70 struct type_test {} __attribute__((stdcall)); // expected-warning {{'stdcall' attribute only applies to functions and methods}}