summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/func_result_4.f90
blob: c3da2d60fc3d485874b6220118b229c8dcf45765 (plain)
1
2
3
4
5
6
7
8
9
10
! { 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