]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: fortran: fix dg syntax errors
authorSam James <sam@gentoo.org>
Thu, 27 Mar 2025 00:14:21 +0000 (00:14 +0000)
committerSam James <sam@gentoo.org>
Thu, 27 Mar 2025 00:42:11 +0000 (00:42 +0000)
No change in test results. The changes other than the first are
arguably not errors, but still clearly wrong and mistakes.

gcc/testsuite/ChangeLog:

* gfortran.dg/associate_70.f90: Replace parenthesis with '}'.
* gfortran.dg/bessel_3.f90: Drop extraneous parenthesis.
* gfortran.dg/c_funloc_tests_6.f90: Ditto.
* gfortran.dg/parity_2.f90: Ditto.

gcc/testsuite/gfortran.dg/associate_70.f90
gcc/testsuite/gfortran.dg/bessel_3.f90
gcc/testsuite/gfortran.dg/c_funloc_tests_6.f90
gcc/testsuite/gfortran.dg/parity_2.f90

index ddb38b84c4b3672c787a378c558422c3b3987ac5..6f8f5d6a7cb88740c2194821f314e8b2bb7c4fa1 100644 (file)
@@ -1,5 +1,5 @@
 ! { dg-do run }
-! ( dg-options "-Wuninitialized" )
+! { dg-options "-Wuninitialized" }
 !
 ! Test fix for PR115700 comment 5, in which ‘.tmp1’ is used uninitialized and
 ! both normal and scalarized array references did not work correctly.
index 51e11e9160a9b71d6b3d0597de935f896b62b9e0..4191d2478cd66712d755a6860367fd97ca8f1f44 100644 (file)
@@ -6,7 +6,7 @@
 !
 IMPLICIT NONE
 print *, SIN (1.0)
-print *, BESSEL_J0(1.0) ! { dg-error "has no IMPLICIT type" })
+print *, BESSEL_J0(1.0) ! { dg-error "has no IMPLICIT type" }
 print *, BESSEL_J1(1.0) ! { dg-error "has no IMPLICIT type" }
 print *, BESSEL_JN(1,1.0) ! { dg-error "has no IMPLICIT type|Type mismatch" }
 print *, BESSEL_JN(1,2,1.0) ! { dg-error "has no IMPLICIT type|Type mismatch|More actual than formal" }
index 45d095566d134f16a607909b3bbf39d6859a2e0b..d8c8039e258673e968b142039c4d93ed5bc85449 100644 (file)
@@ -20,7 +20,7 @@ procedure(sub), pointer :: fsub
 integer, external :: noCsub
 procedure(integer), pointer :: fint
 
-cp = c_funloc (sub) ! { dg-error "Cannot convert TYPE.c_funptr. to TYPE.c_ptr." })
+cp = c_funloc (sub) ! { dg-error "Cannot convert TYPE.c_funptr. to TYPE.c_ptr." }
 cfp = c_loc (int)   ! { dg-error "Cannot convert TYPE.c_ptr. to TYPE.c_funptr." }
 
 call c_f_pointer (cfp, int)     ! { dg-error "Argument CPTR at .1. to C_F_POINTER shall have the type TYPE.C_PTR." }
index 5ff11dab9d919eed65a3e7e3d521485117034073..9a8e0357d67b2ad1e0ffbaf2642f2c1ad3309313 100644 (file)
@@ -6,7 +6,7 @@
 ! Check implementation of PARITY
 !
 implicit none
-print *, parity([real ::]) ! { dg-error "must be LOGICAL" })
+print *, parity([real ::]) ! { dg-error "must be LOGICAL" }
 print *, parity([integer ::]) ! { dg-error "must be LOGICAL" }
 print *, parity([logical ::])
 print *, parity(.true.) ! { dg-error "must be an array" }