aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/libffi/testsuite/libffi.call/cls_double_va.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/libffi/testsuite/libffi.call/cls_double_va.c')
-rw-r--r--gcc-4.8/libffi/testsuite/libffi.call/cls_double_va.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc-4.8/libffi/testsuite/libffi.call/cls_double_va.c b/gcc-4.8/libffi/testsuite/libffi.call/cls_double_va.c
index dbf20002d..01ef1c2f1 100644
--- a/gcc-4.8/libffi/testsuite/libffi.call/cls_double_va.c
+++ b/gcc-4.8/libffi/testsuite/libffi.call/cls_double_va.c
@@ -45,19 +45,17 @@ int main (void)
args[2] = NULL;
ffi_call(&cif, FFI_FN(printf), &res, args);
- // { dg-output "7.0" }
+ /* { dg-output "7.0" } */
printf("res: %d\n", (int) res);
- // { dg-output "\nres: 4" }
+ /* { dg-output "\nres: 4" } */
- /* The call to cls_double_va_fn is static, so have to use a normal prep_cif */
- CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 2, &ffi_type_sint, arg_types) == FFI_OK);
+ CHECK(ffi_prep_closure_loc(pcl, &cif, cls_double_va_fn, NULL,
+ code) == FFI_OK);
- CHECK(ffi_prep_closure_loc(pcl, &cif, cls_double_va_fn, NULL, code) == FFI_OK);
-
- res = ((int(*)(char*, double))(code))(format, doubleArg);
- // { dg-output "\n7.0" }
+ res = ((int(*)(char*, ...))(code))(format, doubleArg);
+ /* { dg-output "\n7.0" } */
printf("res: %d\n", (int) res);
- // { dg-output "\nres: 4" }
+ /* { dg-output "\nres: 4" } */
exit(0);
}