30 ffi_type *ts9_type_elements[3];
39 ts9_type.alignment = 0;
40 ts9_type.type = FFI_TYPE_STRUCT;
41 ts9_type.elements = ts9_type_elements;
42 ts9_type_elements[0] = &ffi_type_float;
43 ts9_type_elements[1] = &ffi_type_sint;
44 ts9_type_elements[2] =
NULL;
55 printf (
"%g\n", ts9_arg.
f);
56 printf (
"%d\n", ts9_arg.
i);
60 printf (
"%g\n", ts9_result->
f);
61 printf (
"%d\n", ts9_result->
i);
63 CHECK(ts9_result->
f == 5.55f + 1);
64 CHECK(ts9_result->
i == 5 + 1);
static test_structure_9 ABI_ATTR struct9(test_structure_9 ts)
void ffi_call(ffi_cif *cif, void(*fn)(void), void *rvalue, void **avalue)
ffi_status ffi_prep_cif(ffi_cif *cif, ffi_abi abi, unsigned int nargs, ffi_type *rtype, ffi_type **atypes)