diff options
author | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-03 03:17:13 +0000 |
---|---|---|
committer | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-03 03:17:13 +0000 |
commit | c6f5483d0809176f71923bc1d38b6a547ae076b9 (patch) | |
tree | 85b5199a74771709e82a5fad39ec4cdee57868b9 /libffi/testsuite | |
parent | 39f55037edb410e5e666aff09f2ae1a3bf8e409c (diff) | |
download | gcc-c6f5483d0809176f71923bc1d38b6a547ae076b9.tar.gz |
* testsuite/libffi.call/return_ul.c (main): Define return type as
ffi_arg. Use proper printf conversion specifier.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/testsuite')
-rw-r--r-- | libffi/testsuite/libffi.call/return_ul.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libffi/testsuite/libffi.call/return_ul.c b/libffi/testsuite/libffi.call/return_ul.c index 25102240bc8..12b266f0373 100644 --- a/libffi/testsuite/libffi.call/return_ul.c +++ b/libffi/testsuite/libffi.call/return_ul.c @@ -16,7 +16,7 @@ int main (void) ffi_cif cif; ffi_type *args[MAX_ARGS]; void *values[MAX_ARGS]; - unsigned long res; + ffi_arg res; unsigned long ul1, ul2; args[0] = &ffi_type_ulong; @@ -31,7 +31,7 @@ int main (void) ul2 = 1073741824L; ffi_call(&cif, FFI_FN(return_ul), &res, values); - printf("res: %ld, %ld\n", res, ul1 + ul2); + printf("res: %lu, %lu\n", (unsigned long)res, ul1 + ul2); /* { dg-output "res: 2147483647, 2147483647" } */ exit(0); |