Home
last modified time | relevance | path

Searched refs:cdecl (Results 1 – 25 of 51) sorted by relevance

123

/llvm-project-15.0.7/clang/test/Parser/
H A Dattr-order.cpp12 [[noreturn]] __attribute__((cdecl)) __declspec(dllexport) void a(); // ok
13 [[noreturn]] __declspec(dllexport) __attribute__((cdecl)) void b(); // ok
14 [[]] [[noreturn]] __attribute__((cdecl)) __declspec(dllexport) void c(); // ok
17 __declspec(dllexport) [[noreturn]] __attribute__((cdecl)) void d(); // expected-error {{an attribut…
18 __declspec(dllexport) __attribute__((cdecl)) [[noreturn]] void e(); // expected-error {{an attribut…
19 __attribute__((cdecl)) __declspec(dllexport) [[noreturn]] void f(); // expected-error {{an attribut…
20 __attribute__((cdecl)) [[noreturn]] __declspec(dllexport) void g(); // expected-error {{an attribut…
22 [[noreturn]] __attribute__((cdecl))
H A Dx64-windows-calling-convention-handling.c3 int __cdecl cdecl(int a, int b, int c, int d) { // expected-no-diagnostics in cdecl() function
H A Darm-windows-calling-convention-handling.c4 int __cdecl cdecl(int a, int b, int c, int d) { // expected-no-diagnostics in cdecl() function
/llvm-project-15.0.7/clang/test/Sema/
H A Dcallingconv.c26 void __attribute__((cdecl)) ctest0() {} in ctest0()
28 void __attribute__((cdecl(1))) ctest1(float x) {} // expected-error {{'cdecl' attribute takes no ar… in ctest1()
34 void (__attribute__((cdecl)) *ptest1)(void) = test1; // expected-warning {{incompatible function po…
39 void (__attribute__((cdecl)) *pctest2)() = ctest2;
61 void __attribute__((cdecl)) ctest3() {} in ctest3()
65 PROC __attribute__((cdecl)) ctest4(const char *x) {} in ctest4()
H A Dcallingconv-iamcu.c19 void __attribute__((cdecl)) ctest0() {} in ctest0()
21 void __attribute__((cdecl(1))) ctest1(float x) {} // expected-error {{'cdecl' attribute takes no ar… in ctest1()
30 void (__attribute__((cdecl)) *pctest2)() = ctest2;
46 void __attribute__((cdecl)) ctest3() {} in ctest3()
49 PROC __attribute__((cdecl)) ctest4(const char *x) {} in ctest4()
H A Dstdcall-fastcall.c13 void rdar8876096foo1(int i, int j) __attribute__((fastcall, cdecl)); // expected-error {{not compat…
16 void rdar8876096foo4(int i, int j) __attribute__((stdcall, cdecl)); // expected-error {{not compati…
18 void rdar8876096foo6(int i, int j) __attribute__((cdecl, fastcall)); // expected-error {{not compat…
19 void rdar8876096foo7(int i, int j) __attribute__((cdecl, stdcall)); // expected-error {{not compati…
H A Dstdcall-fastcall-x64.c13 void rdar8876096foo1(int i, int j) __attribute__((fastcall, cdecl)); // expected-warning{{'fastcall…
16 void rdar8876096foo4(int i, int j) __attribute__((stdcall, cdecl)); // expected-warning{{'stdcall' …
18 void rdar8876096foo6(int i, int j) __attribute__((cdecl, fastcall)); // expected-warning {{'fastcal…
19 void rdar8876096foo7(int i, int j) __attribute__((cdecl, stdcall)); // expected-warning{{'stdcall' …
H A Dms_abi-sysv_abi.c13 void bar(int i, int j) __attribute__((ms_abi, cdecl)); // expected-error{{cdecl and ms_abi attribut…
14 void bar2(int i, int j) __attribute__((sysv_abi, cdecl)); // no-error
H A Dmrtd.c24 __attribute__((cdecl)) extern void (*a)(int, int);
27 __attribute__((cdecl)) extern void (*b)(int, ...);
H A Dpreserve-call-conv.c17 void (__attribute__((cdecl)) *pfoo2)(void *) = foo; // expected-warning {{incompatible function poi…
33 void (__attribute__((cdecl)) *pboo2)(void *) = boo; // expected-warning {{incompatible function poi…
H A Dknr-def-call.c47 void func(short d) __attribute__((cdecl)); // expected-note{{previous declaration is here}}
48 void __attribute__((cdecl)) func(d) // expected-warning {{a function definition without a prototype… in func()
H A Daarch64-vpcs.c9 void __attribute__((cdecl)) foo2(void); // expected-note {{previous declaration is h…
H A Daarch64-svepcs.c9 void __attribute__((cdecl)) foo2(void); // expected-note {{previous declaration is here…
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dlambda-conversion-op-cc.cpp15 auto cdecl = [](int, float, double) __attribute__((cdecl)){}; in useage() local
26 (void)+cdecl; in useage()
181 void (*cdecl_ptr)(int, float, double) = cdecl; in useage()
H A Dtype-attrs.cpp3 void f() [[gnu::cdecl]] {} // expected-warning {{GCC does not allow the 'cdecl' attribute to be wr… in f()
H A Dvirtual-override-x86.cpp11 …void __attribute__((cdecl)) f(); // expected-error{{virtual function 'f' has different calling co…
H A Dvirtual-override-x64.cpp14 void __attribute__((cdecl)) f();
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/
H A Dpdb-type-ref-stats.test12 CHECK: calling conv = cdecl, options = None
18 CHECK: calling conv = cdecl, options = None
26 CHECK: calling conv = cdecl, options = None
407 CHECK: calling conv = cdecl, options = None
430 CHECK: calling conv = cdecl, options = None
455 CHECK: calling conv = cdecl, options = None
473 CHECK: calling conv = cdecl, options = None
480 CHECK: calling conv = cdecl, options = None
487 CHECK: calling conv = cdecl, options = None
494 CHECK: calling conv = cdecl, options = None
[all …]
H A Devery-type.test43 TYPES-NEXT: calling conv = cdecl, options = None
66 TYPES-NEXT: calling conv = cdecl, options = None
72 TYPES-NEXT: calling conv = cdecl, options = None
129 TYPES-NEXT: calling conv = cdecl, options = None
133 TYPES-NEXT: calling conv = cdecl, options = None
184 TYPES-NEXT: calling conv = cdecl, options = None
188 TYPES-NEXT: calling conv = cdecl, options = None
217 TYPES-NEXT: calling conv = cdecl, options = None
224 TYPES-NEXT: calling conv = cdecl, options = None
230 TYPES-NEXT: calling conv = cdecl, options = None
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A D2007-01-06-PtrMethodInit.cpp36 __attribute__ ((regparm (0), cdecl)) HandleEvent (nsIDOMEvent * event) =
48 cdecl)) MouseDown (nsIDOMEvent * aMouseEvent) = 0;
H A Dmicrosoft-abi-default-cc.cpp7 # define METHOD_CC __attribute__ ((cdecl))
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dtailcall-msvc-conventions.ll10 ; Don't allow tail calling these cdecl functions, because we need to clear the
145 ; stdcall to cdecl works if no arguments need popping.
153 ; vectorcall to cdecl works if no arguments need popping.
161 ; fastcall to cdecl works if no arguments need popping.
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-trailing-return-type.cpp344 int unsigned g3() __attribute__((cdecl)); // FunctionTypeLoc is null.
346 int unsigned __attribute__((cdecl)) g3() ; // FunctionTypeLoc is null.
348 __attribute__((cdecl)) int unsigned g3() ; // FunctionTypeLoc is null.
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-types-json.cpp15 #define CDECL __attribute__((cdecl))
H A Dast-print-attr.c12 using C = int (*)() [[gnu::cdecl]];

123