From: Andreas Schwab Date: Wed, 11 Sep 2024 11:08:30 +0000 (+0200) Subject: testsuite: Relax line number match in gfortran.dg/pr95690.f90 X-Git-Tag: basepoints/gcc-16~5421 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d022f6925702b0890a73613d659350b40f44f215;p=thirdparty%2Fgcc.git testsuite: Relax line number match in gfortran.dg/pr95690.f90 The actual line number is target dependent, and immaterial for the test. * gfortran.dg/pr95690.f90: Allow matching error message anywhere. --- 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 }