summaryrefslogtreecommitdiff
path: root/libffi/testsuite/libffi.call/cls_uint.c
diff options
context:
space:
mode:
Diffstat (limited to 'libffi/testsuite/libffi.call/cls_uint.c')
-rw-r--r--libffi/testsuite/libffi.call/cls_uint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libffi/testsuite/libffi.call/cls_uint.c b/libffi/testsuite/libffi.call/cls_uint.c
index f0977ab2308..684002217ce 100644
--- a/libffi/testsuite/libffi.call/cls_uint.c
+++ b/libffi/testsuite/libffi.call/cls_uint.c
@@ -23,7 +23,7 @@ int main (void)
static ffi_closure cl;
ffi_closure *pcl = &cl;
ffi_type * cl_arg_types[2];
-
+ unsigned int res;
cl_arg_types[0] = &ffi_type_uint32;
cl_arg_types[1] = NULL;
@@ -34,8 +34,8 @@ int main (void)
CHECK(ffi_prep_closure(pcl, &cif, cls_ret_uint_fn, NULL) == FFI_OK);
- (*((cls_ret_uint)pcl))(2147483647);
+ res = (*((cls_ret_uint)pcl))(2147483647);
/* { dg-output "2147483647: 2147483647" } */
-
+ CHECK(res == 2147483647);
exit(0);
}