diff options
Diffstat (limited to 'libffi/testsuite/libffi.call/cls_float.c')
-rw-r--r-- | libffi/testsuite/libffi.call/cls_float.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libffi/testsuite/libffi.call/cls_float.c b/libffi/testsuite/libffi.call/cls_float.c index dd0a48bd2cc..bd1601ebc78 100644 --- a/libffi/testsuite/libffi.call/cls_float.c +++ b/libffi/testsuite/libffi.call/cls_float.c @@ -24,6 +24,7 @@ int main (void) static ffi_closure cl; ffi_closure *pcl = &cl; ffi_type * cl_arg_types[2]; + float res; cl_arg_types[0] = &ffi_type_float; @@ -34,10 +35,9 @@ int main (void) &ffi_type_float, cl_arg_types) == FFI_OK); CHECK(ffi_prep_closure(pcl, &cif, cls_ret_float_fn, NULL) == FFI_OK); - ((((cls_ret_float)pcl)(-2122.12))); - /* { dg-output "\\-2122.12: \\-2122.12\n" } */ - printf("%f \n",(((cls_ret_float)pcl)(-2122.12))); + res = ((((cls_ret_float)pcl)(-2122.12))); /* { dg-output "\\-2122.12: \\-2122.12" } */ - /* { dg-output "\n\-2122.120117" } */ + printf("res: %.6f\n", res); + /* { dg-output "\nres: \-2122.120117" } */ exit(0); } |