diff mbox series

testsuite: Relax line number match in gfortran.dg/pr95690.f90

Message ID mvmcyla4ce1.fsf@suse.de
State New
Headers show
Series testsuite: Relax line number match in gfortran.dg/pr95690.f90 | expand

Commit Message

Andreas Schwab Sept. 11, 2024, 12:12 p.m. UTC
The actual line number is target dependent, and immaterial for the test.

	* gfortran.dg/pr95690.f90: Allow matching error message anywhere.
---
 gcc/testsuite/gfortran.dg/pr95690.f90 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gfortran.dg/pr95690.f90 b/gcc/testsuite/gfortran.dg/pr95690.f90
index 1432937438a..4bd19b3dcdd 100644
--- a/gcc/testsuite/gfortran.dg/pr95690.f90
+++ b/gcc/testsuite/gfortran.dg/pr95690.f90
@@ -2,8 +2,10 @@ 
 module m
 contains
    subroutine s
-      print *, (erfc) ! { dg-error "not a floating constant" "" { target i?86-*-* x86_64-*-* sparc*-*-* cris-*-* hppa*-*-* } }
-   end ! { dg-error "not a floating constant" "" { target { ! "i?86-*-* x86_64-*-* sparc*-*-* cris-*-* hppa*-*-*" } } }
+      print *, (erfc)
+   end
    function erfc()
    end
 end
+! The actual line number is target dependent, allow any
+! { dg-error "not a floating constant" "" { target *-*-* } 0 }