summaryrefslogtreecommitdiff
path: root/testsuite/libffi.closures/cls_9byte1.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/libffi.closures/cls_9byte1.c')
-rw-r--r--testsuite/libffi.closures/cls_9byte1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/libffi.closures/cls_9byte1.c b/testsuite/libffi.closures/cls_9byte1.c
index 6eb4520..9d3b609 100644
--- a/testsuite/libffi.closures/cls_9byte1.c
+++ b/testsuite/libffi.closures/cls_9byte1.c
@@ -26,6 +26,15 @@ static cls_struct_9byte cls_struct_9byte_fn(struct cls_struct_9byte b1,
printf("%d %g %d %g: %d %g\n", b1.a, b1.b, b2.a, b2.b,
result.a, result.b);
+ CHECK(b1.a == 7);
+ CHECK(b1.b == 8);
+
+ CHECK(b2.a == 1);
+ CHECK(b2.b == 9);
+
+ CHECK(result.a == 8);
+ CHECK(result.b == 17);
+
return result;
}
@@ -78,6 +87,8 @@ int main (void)
/* { dg-output "7 8 1 9: 8 17" } */
printf("res: %d %g\n", res_dbl.a, res_dbl.b);
/* { dg-output "\nres: 8 17" } */
+ CHECK(res_dbl.a == 8);
+ CHECK(res_dbl.b == 17);
CHECK(ffi_prep_closure_loc(pcl, &cif, cls_struct_9byte_gn, NULL, code) == FFI_OK);
@@ -85,6 +96,8 @@ int main (void)
/* { dg-output "\n7 8 1 9: 8 17" } */
printf("res: %d %g\n", res_dbl.a, res_dbl.b);
/* { dg-output "\nres: 8 17" } */
+ CHECK(res_dbl.a == 8);
+ CHECK(res_dbl.b == 17);
exit(0);
}