dmd/compiler/test/compilable/imports/test24511_c.c

17 lines
451 B
C

typedef void (*CFunctionPointer)();
typedef void (__stdcall *StdCallFunctionPointer)();
void cFunction()
{}
void __stdcall stdcallFunction()
{}
void __stdcall takesCFunctionPointer(CFunctionPointer f)
{}
void takesStdCallFunctionPointer(StdCallFunctionPointer f)
{}
typedef void (__stdcall *StdCallFunctionPointerTakingCFunctionPointer)(CFunctionPointer f);
typedef void (*CFunctionPointerTakingStdCallFunctionPointer)(StdCallFunctionPointer f);