aboutsummaryrefslogtreecommitdiff
path: root/libffi/testsuite/libffi.call/problem1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libffi/testsuite/libffi.call/problem1.c')
-rw-r--r--libffi/testsuite/libffi.call/problem1.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libffi/testsuite/libffi.call/problem1.c b/libffi/testsuite/libffi.call/problem1.c
index 6cbdb2c..f3bd3b5 100644
--- a/libffi/testsuite/libffi.call/problem1.c
+++ b/libffi/testsuite/libffi.call/problem1.c
@@ -75,19 +75,15 @@ int main(void)
args[2] = NULL;
ffi_call(&cif, FFI_FN(callee), &res, args);
/* { dg-output "1 2 3 1 2 3: 2 4 6" } */
-
- CHECK(res.a == 2.0);
- CHECK(res.b == 4.0);
- CHECK(res.c == 6.0);
+ printf("res: %g %g %g\n", res.a, res.b, res.c);
+ /* { dg-output "\nres: 2 4 6" } */
CHECK(ffi_prep_closure(pcl, &cif, stub, NULL) == FFI_OK);
res = ((my_ffi_struct(*)(struct my_ffi_struct, struct my_ffi_struct))(pcl))(g, f);
/* { dg-output "\n1 2 3 1 2 3: 2 4 6" } */
-
- CHECK(res.a == 2.0);
- CHECK(res.b == 4.0);
- CHECK(res.c == 6.0);
+ printf("res: %g %g %g\n", res.a, res.b, res.c);
+ /* { dg-output "\nres: 2 4 6" } */
exit(0);;
}