aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/libffi/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/libffi/testsuite')
-rw-r--r--gcc-4.8/libffi/testsuite/Makefile.in1
-rw-r--r--gcc-4.8/libffi/testsuite/libffi.call/cls_double_va.c16
-rw-r--r--gcc-4.8/libffi/testsuite/libffi.call/cls_longdouble_va.c17
3 files changed, 15 insertions, 19 deletions
diff --git a/gcc-4.8/libffi/testsuite/Makefile.in b/gcc-4.8/libffi/testsuite/Makefile.in
index 4a9f98ed9..808d4cb2e 100644
--- a/gcc-4.8/libffi/testsuite/Makefile.in
+++ b/gcc-4.8/libffi/testsuite/Makefile.in
@@ -88,6 +88,7 @@ FFI_EXEC_TRAMPOLINE_TABLE = @FFI_EXEC_TRAMPOLINE_TABLE@
FGREP = @FGREP@
GREP = @GREP@
HAVE_LONG_DOUBLE = @HAVE_LONG_DOUBLE@
+HAVE_LONG_DOUBLE_VARIANT = @HAVE_LONG_DOUBLE_VARIANT@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
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);
}
diff --git a/gcc-4.8/libffi/testsuite/libffi.call/cls_longdouble_va.c b/gcc-4.8/libffi/testsuite/libffi.call/cls_longdouble_va.c
index 4fa1ea28a..1082570de 100644
--- a/gcc-4.8/libffi/testsuite/libffi.call/cls_longdouble_va.c
+++ b/gcc-4.8/libffi/testsuite/libffi.call/cls_longdouble_va.c
@@ -45,20 +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_longdouble_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_longdouble_va_fn, NULL, code) == FFI_OK);
+ CHECK(ffi_prep_closure_loc(pcl, &cif, cls_longdouble_va_fn, NULL,
+ code) == FFI_OK);
- res = ((int(*)(char*, long double))(code))(format, ldArg);
- // { dg-output "\n7.0" }
+ res = ((int(*)(char*, ...))(code))(format, ldArg);
+ /* { dg-output "\n7.0" } */
printf("res: %d\n", (int) res);
- // { dg-output "\nres: 4" }
+ /* { dg-output "\nres: 4" } */
exit(0);
}