2 Purpose: Check if long as return type is handled correctly.
9 static long return_sl(long l1
, long l2
)
17 ffi_type
*args
[MAX_ARGS
];
18 void *values
[MAX_ARGS
];
22 args
[0] = &ffi_type_slong
;
23 args
[1] = &ffi_type_slong
;
27 CHECK(ffi_prep_cif(&cif
, FFI_DEFAULT_ABI
, 2,
28 &ffi_type_slong
, args
) == FFI_OK
);
33 ffi_call(&cif
, FFI_FN(return_sl
), &res
, values
);
34 printf("res: %ld, %ld\n", (long)res
, l1
- l2
);
35 /* { dg-output "res: -1, -1" } */