From b260e9123e3c80e0f4e18e6a6ac988d63042e741 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 1 Jul 2020 14:05:26 -0400 Subject: [PATCH] testsuite: Adjust gfortran.dg/pr95690.f90 line number. gfortran produces associates a different line number for the same error message depending on x86 versus other architectures. This patch adjusts the dg-error line number depending on the target. gcc/testsuite/ChangeLog 2020-07-01 David Edelsohn * gfortran.dg/pr95690.f90: Adjust dg-error line number. --- gcc/testsuite/gfortran.dg/pr95690.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gfortran.dg/pr95690.f90 b/gcc/testsuite/gfortran.dg/pr95690.f90 index 2da08912a4d..f17f3c623cc 100644 --- a/gcc/testsuite/gfortran.dg/pr95690.f90 +++ b/gcc/testsuite/gfortran.dg/pr95690.f90 @@ -2,8 +2,8 @@ module m contains subroutine s - print *, (erfc) ! { dg-error "not a floating constant" } - end + print *, (erfc) ! { dg-error "not a floating constant" "" { target i?86-*-* x86_64-*-* } } + end ! { dg-error "not a floating constant" "" { target { ! "i?86-*-* x86_64-*-*" } } } function erfc() end end -- 2.30.2