diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2023-02-14 10:11:19 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2023-02-14 10:19:47 +0100 |
commit | 8d8175869ca94c600e64e27b7676787b2a398f6e (patch) | |
tree | a82e1c11d9b7cf0d83ab804d43a9ffec4fd8795e /gcc | |
parent | b9c78605039f839f3c79ad8fca4f60ea9a5654ed (diff) | |
download | gcc-8d8175869ca94c600e64e27b7676787b2a398f6e.zip gcc-8d8175869ca94c600e64e27b7676787b2a398f6e.tar.gz gcc-8d8175869ca94c600e64e27b7676787b2a398f6e.tar.bz2 |
nvptx: Adjust 'scan-assembler' in 'gfortran.dg/weak-1.f90'
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gfortran.dg/weak-1.f90 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gfortran.dg/weak-1.f90 b/gcc/testsuite/gfortran.dg/weak-1.f90 index d9aca68..9ec1fe7 100644 --- a/gcc/testsuite/gfortran.dg/weak-1.f90 +++ b/gcc/testsuite/gfortran.dg/weak-1.f90 @@ -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 |