]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 13 Jan 2024 18:06:21 +0000 (18:06 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 13 Jan 2024 18:06:21 +0000 (18:06 +0000)
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.

gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90
gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90

index 3e7d8f64d43d5e601530b1660a6eda64f530766c..46f271e0c60aa0ddd179f86a9999298d405d3a1b 100644 (file)
@@ -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
index 95a059819416e294afb639463e2fb78d406f8ede..22fe1a35d65ccace20a464a3b5f20b7ade4387c9 100644 (file)
@@ -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