File: save_03.f90

package info (click to toggle)
lfortran 0.60.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 58,412 kB
  • sloc: cpp: 173,406; f90: 80,491; python: 17,586; ansic: 9,610; yacc: 2,356; sh: 1,401; fortran: 895; makefile: 37; javascript: 15
file content (73 lines) | stat: -rw-r--r-- 1,533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
subroutine save_sub()
   integer :: i, j
   save
   real :: k, l
   double precision :: m(5), n(5, 5), o(5, 6, 7)
end subroutine

subroutine save_nested_sub()
   integer :: i, j
   contains
      subroutine save_sub()
         save
         real :: k, l
         double precision :: m(5), n(5, 5), o(5, 6, 7)
      end subroutine

      real function save_func()
         save
         real :: k, l
         double precision :: m(5), n(5, 5), o(5, 6, 7)
      end function
end subroutine

real function save_func()
   integer :: i, j
   save
   real :: k, l
   double precision :: m(5), n(5, 5), o(5, 6, 7)
end function

real function save_nested_func()
   integer :: i, j
   contains
      real function save_func()
         save
         real :: k, l
         double precision :: m(5), n(5, 5), o(5, 6, 7)
      end function

      subroutine save_sub()
         save
         real :: k, l
         double precision :: m(5), n(5, 5), o(5, 6, 7)
      end subroutine
end function

module save_module_03
   integer :: i, j
   save
   real :: k, l
   contains
      subroutine save_sub_mod()
         integer :: i, j
         save
         real :: k, l
         double precision :: m(5), n(5, 5), o(5, 6, 7)
      end subroutine

      real function save_func_mod()
         integer :: i, j
         save
         real :: k, l
         double precision :: m(5), n(5, 5), o(5, 6, 7)
      end function
end module


program save_03
   integer :: i, j
   save
   real :: k, l
   double precision :: m(5), n(5, 5), o(5, 6, 7)
end program