aboutsummaryrefslogtreecommitdiff
path: root/libffi/testsuite
diff options
context:
space:
mode:
authorDavid Daney <ddaney@avtrex.com>2007-08-03 03:17:13 +0000
committerDavid Daney <daney@gcc.gnu.org>2007-08-03 03:17:13 +0000
commit58e11497f7aea9f79afd30976e463426aeb64ee1 (patch)
tree85b5199a74771709e82a5fad39ec4cdee57868b9 /libffi/testsuite
parentbcaaa78047de58bf661377588d48469be39c3aeb (diff)
downloadgcc-58e11497f7aea9f79afd30976e463426aeb64ee1.zip
gcc-58e11497f7aea9f79afd30976e463426aeb64ee1.tar.gz
gcc-58e11497f7aea9f79afd30976e463426aeb64ee1.tar.bz2
return_ul.c (main): Define return type as ffi_arg.
* testsuite/libffi.call/return_ul.c (main): Define return type as ffi_arg. Use proper printf conversion specifier. From-SVN: r127177
Diffstat (limited to 'libffi/testsuite')
-rw-r--r--libffi/testsuite/libffi.call/return_ul.c4
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 2510224..12b266f 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);