(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
func_result_4.f90
! { dg-do compile }
! { dg-options "-c" }
!
! Do not apply the SAVE attribute to function results.
!
FUNCTION f() RESULT (g)
  INTEGER :: g
  SAVE
  g = 42
END FUNCTION