Adjust 'libgomp.oacc-fortran/attach-descriptor-1.f90' for improved location information
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 12 Nov 2020 19:07:25 +0000 (20:07 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 12 Nov 2020 19:20:10 +0000 (20:20 +0100)
Fix-up for commit b71ff8c15f5a7d6b1cc1524b4d27843f0d88dbda "Fortran: improve
location data for OpenACC/OpenMP directives [PR97782]".

libgomp/
PR fortran/97782
* testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.

libgomp/testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90

index 960b9f9..2701192 100644 (file)
@@ -42,9 +42,8 @@ subroutine test(variant)
      stop 1
   end if
 
-  ! FIXME: This warning is emitted on the wrong line number.
-  ! { dg-warning "using vector_length \\(32\\), ignoring 1" "" { target openacc_nvidia_accel_selected } 52 }
   !$acc serial present(myvar%arr2)
+  ! { dg-warning "using vector_length \\(32\\), ignoring 1" "" { target openacc_nvidia_accel_selected } .-1 }
   do i=1,10
     myvar%arr1(i) = i + variant
     myvar%arr2(i) = i - variant