8 @cython.callspec("__cdecl")
9 cdef void __cdecl h2(): pass
11 @cython.callspec("__stdcall")
12 cdef void __stdcall h3(): pass
14 @cython.callspec("__fastcall")
15 cdef void __fastcall h4(): pass
17 @cython.callspec("__cdecl")
18 cdef void __stdcall h5(): pass # fail
20 @cython.callspec("__cdecl")
21 cdef void __fastcall h6(): pass # fail
24 cdef void (__cdecl *p2)()
25 cdef void (__stdcall *p3)()
26 cdef void (__fastcall *p4)()
42 18:22: cannot have both '__stdcall' and '__cdecl' calling conventions
43 21:23: cannot have both '__fastcall' and '__cdecl' calling conventions
45 #31:14: Cannot assign type 'void (__cdecl )(void)' to 'void (*)(void)'
46 #32:14: Cannot assign type 'void (__stdcall )(void)' to 'void (*)(void)'
47 #33:14: Cannot assign type 'void (__fastcall )(void)' to 'void (*)(void)'
48 #35:14: Cannot assign type 'void (void)' to 'void (__cdecl *)(void)'
49 #36:14: Cannot assign type 'void (__stdcall )(void)' to 'void (__cdecl *)(void)'
50 #37:14: Cannot assign type 'void (__fastcall )(void)' to 'void (__cdecl *)(void)'