testsuite: fix scan-tree-dump patterns [PR83904,PR100297]

Adjust scan-tree-dump patterns so that they do not accidentally match a
valid path.

gcc/testsuite/ChangeLog:

	PR testsuite/83904
	PR fortran/100297
	* gfortran.dg/allocatable_function_1.f90: Use "__builtin_free "
	instead of the naive "free".
	* gfortran.dg/reshape_8.f90: Extend pattern from a simple "data".
This commit is contained in:
Harald Anlauf 2023-04-18 21:24:20 +02:00
parent 04a9209dc8
commit 6fc8e25cb6
2 changed files with 2 additions and 2 deletions

View file

@ -107,4 +107,4 @@ contains
end function bar
end program alloc_fun
! { dg-final { scan-tree-dump-times "free" 10 "original" } }
! { dg-final { scan-tree-dump-times "__builtin_free " 10 "original" } }

View file

@ -11,4 +11,4 @@ program test
a = reshape([1,2,3,4], [2,0])
print *, a
end
! { dg-final { scan-tree-dump-times "data" 4 "original" } }
! { dg-final { scan-tree-dump-not "data..0. =" "original" } }