nvptx: Adjust 'scan-assembler' in 'gfortran.dg/weak-1.f90'
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 14 Feb 2023 09:11:19 +0000 (10:11 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 14 Feb 2023 09:19:47 +0000 (10:19 +0100)
Fix-up for recent commit 086a1df4374962787db37c1f0d1bd9beb828f9e3
"Fortran: Add !GCC$ attributes NOINLINE,NORETURN,WEAK".

gcc/testsuite/
* gfortran.dg/weak-1.f90: Adjust 'scan-assembler' for nvptx.

gcc/testsuite/gfortran.dg/weak-1.f90

index d9aca68..9ec1fe7 100644 (file)
@@ -1,6 +1,7 @@
 ! { dg-do compile }
 ! { dg-require-weak "" }
-! { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?impl" } }
+! { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?impl" { target { ! nvptx-*-* } } } }
+! { dg-final { scan-assembler-times "\\.weak \\.func impl" 2 { target nvptx-*-* } } }
 subroutine impl
 !GCC$ ATTRIBUTES weak :: impl
 end subroutine