]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Relax line number match in gfortran.dg/pr95690.f90
authorAndreas Schwab <schwab@suse.de>
Wed, 11 Sep 2024 11:08:30 +0000 (13:08 +0200)
committerAndreas Schwab <schwab@suse.de>
Tue, 8 Oct 2024 07:49:40 +0000 (09:49 +0200)
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

index 1432937438acb976581d33b88d8b8969df5e6d7f..4bd19b3dcdd0c2f2506e633e53aed9368f445830 100644 (file)
@@ -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 }