Sha256: 71653402f2e619a328822293df880432be8a99075463af1b612f13d0652d99ce
Contents?: true
Size: 504 Bytes
Versions: 5646
Compression:
Stored size: 504 Bytes
Contents
/* { dg-do run } */ #include "ffitest.h" void doit(ffi_cif *cif, void *rvalue, void **avalue, void *closure) { (void)cif; (void)avalue; *(void **)rvalue = closure; } typedef void * (*FN)(void); int main() { ffi_cif cif; ffi_go_closure cl; void *result; CHECK(ffi_prep_cif(&cif, ABI_NUM, 0, &ffi_type_pointer, NULL) == FFI_OK); CHECK(ffi_prep_go_closure(&cl, &cif, doit) == FFI_OK); ffi_call_go(&cif, FFI_FN(*(FN *)&cl), &result, NULL, &cl); CHECK(result == &cl); exit(0); }
Version data entries
5,646 entries across 5,629 versions & 41 rubygems