aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-01-13 18:06:21 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2024-01-13 18:06:21 +0000
commit3f235afacf384248f5993ab9cd82b6a3f599e010 (patch)
treef1ecb4e9a8a188425a9677ad06cb7371ed760c52 /gcc/testsuite/gfortran.dg
parent9935667a69896865b848dfa690f94c9c693a48a3 (diff)
downloadgcc-3f235afacf384248f5993ab9cd82b6a3f599e010.zip
gcc-3f235afacf384248f5993ab9cd82b6a3f599e010.tar.gz
gcc-3f235afacf384248f5993ab9cd82b6a3f599e010.tar.bz2
hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
The hppa*64*-*-hpux* target is not included in the set of fortran_real_16 targets because it doesn't have cosl. However, these tests don't need cosl, etc. 2024-01-13 John David Anglin <danglin@gcc.gnu.org> gcc/testsuite/ChangeLog: * gfortran.dg/fmt_f_default_field_width_3.f90: Add hppa*64*-*-hpux* to real_16 dg-error targets. * gfortran.dg/fmt_g_default_field_width_3.f90: Likewise.
Diffstat (limited to 'gcc/testsuite/gfortran.dg')
-rw-r--r--gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f902
-rw-r--r--gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f902
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90 b/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90
index 3e7d8f6..46f271e 100644
--- a/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90
+++ b/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90
@@ -30,6 +30,6 @@ program test
#ifdef __GFC_REAL_16__
real_16 = 4.18
- write(buffer, fmt) ':',real_16,':' ! { dg-error "Nonnegative width required" "" { target fortran_real_16 } }
+ write(buffer, fmt) ':',real_16,':' ! { dg-error "Nonnegative width required" "" { target { fortran_real_16 || { hppa*64*-*-hpux* } } } }
#endif
end
diff --git a/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90 b/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90
index 95a0598..22fe1a3 100644
--- a/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90
+++ b/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90
@@ -33,6 +33,6 @@ program test
#ifdef __GFC_REAL_16__
real_16 = 4.18
- write(buffer, fmt) ':',real_16,':' ! { dg-error "Positive width required" "" { target fortran_real_16 } }
+ write(buffer, fmt) ':',real_16,':' ! { dg-error "Positive width required" "" { target { fortran_real_16 || { hppa*64*-*-hpux* } } } }
#endif
end